Skip to content

Commit

Permalink
Merge pull request #1021 from T1ppes/main
Browse files Browse the repository at this point in the history
Introduction of Last Changed for Cover Card
  • Loading branch information
basbruss authored Sep 27, 2022
2 parents 22ae5e7 + f1411dc commit e51fac0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions custom_cards/custom_card_esh_room/custom_card_esh_room.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ card_esh_room:
template:
- "widget_icon"
- "ulm_actions_card"
- "ulm_custom_actions"
variables: >
[[[
let vars = {};
Expand Down Expand Up @@ -310,6 +311,7 @@ card_esh_room:
template:
- "widget_icon"
- "ulm_actions_card"
- "ulm_custom_actions"
variables: >
[[[
let vars = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ card_cover:
template:
- "icon_more_info_new"
- "ulm_translation_engine"
show_last_changed: false
variables:
ulm_card_cover_name: "[[[ return entity.attributes.friendly_name ]]]"
ulm_card_cover_display_left_right: false
Expand All @@ -14,6 +15,7 @@ card_cover:
ulm_card_cover_enable_slider: false
ulm_card_cover_enable_horizontal: false
ulm_card_cover_enable_popup: false
ulm_show_last_changed: false
show_icon: false
show_name: false
show_label: false
Expand Down Expand Up @@ -211,6 +213,7 @@ card_cover:
return variables.ulm_translation_state;
}
]]]
show_last_changed: "[[[ return variables.ulm_show_last_changed; ]]]"
item2:
card:
type: "custom:button-card"
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/popups/popup_cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hide:
---
<!-- markdownlint-disable MD046 -->

### Thermostat popup
### Cover popup

![Phone](../../assets/img/popup_cover.png){ width="500" }

Expand All @@ -27,7 +27,7 @@ For example :
```yaml
- type: "custom:button-card"
template: card_cover
entity: climate.garage
entity: cover.garage
variables:
ulm_card_cover_enable_popup: true
```
Expand Down

0 comments on commit e51fac0

Please sign in to comment.