Skip to content

Commit 3fe6a98

Browse files
authored
Merge pull request #574 from plugwise/icons-2
Add off-icon for thermostat schedules
2 parents ef35e2b + 057532b commit 3fe6a98

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Versions from 0.40 and up
44

5+
## v0.47.3
6+
7+
- Add off-icon for thermostat schedules.
8+
59
## v0.47.2
610

711
- Add icons for the options of the Selects DHW mode, Gateway mode and Regulation mode.

custom_components/plugwise/icons.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@
9292
}
9393
},
9494
"select_schedule": {
95-
"default": "mdi:calendar-clock"
95+
"default": "mdi:calendar-clock",
96+
"state": {
97+
"off": "mdi:circle-off-outline"
98+
}
9699
}
97100
},
98101
"sensor": {

custom_components/plugwise/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class PlugwiseSelectEntityDescription(SelectEntityDescription):
3737
SELECT_TYPES = (
3838
PlugwiseSelectEntityDescription(
3939
key="select_schedule",
40-
translation_key="thermostat_schedule",
40+
translation_key="select_schedule",
4141
command=lambda api, loc, opt: api.set_schedule_state(loc, STATE_ON, opt),
4242
options_key="available_schedules",
4343
),

custom_components/plugwise/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"vacation": "Vacation"
127127
}
128128
},
129-
"thermostat_schedule": {
129+
"select_schedule": {
130130
"name": "Thermostat schedule",
131131
"state": {
132132
"off": "Off"

custom_components/plugwise/translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"vacation": "Vacation"
127127
}
128128
},
129-
"thermostat_schedule": {
129+
"select_schedule": {
130130
"name": "Thermostat schedule",
131131
"state": {
132132
"off": "Off"

custom_components/plugwise/translations/nl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"vacation": "Vakantie"
127127
}
128128
},
129-
"thermostat_schedule": {
129+
"select_schedule": {
130130
"name": "Thermostaatschema",
131131
"state": {
132132
"off": "Uit"

0 commit comments

Comments
 (0)