Skip to content

Commit 05e56ca

Browse files
authored
Merge pull request #517 from plugwise/schedule_fix
Bugfix for core 103251
2 parents fdaae30 + 0c96d63 commit 05e56ca

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
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.44.1
6+
7+
- Bugfix: ensure selecting schedule works correctly
8+
59
## v0.44.0
610

711
- New Feature: implement device_registry cleaning, solution to [Core Issue #102926](https://github.com/home-assistant/core/issues/102926)

custom_components/plugwise/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"iot_class": "local_polling",
1010
"loggers": ["plugwise"],
1111
"requirements": ["plugwise==0.34.4"],
12-
"version": "0.44.0"
12+
"version": "0.44.1"
1313
}

custom_components/plugwise/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PlugwiseSelectEntityDescription(
4646
key="select_schedule",
4747
translation_key="thermostat_schedule",
4848
icon="mdi:calendar-clock",
49-
command=lambda api, loc, opt: api.set_schedule_state(loc, opt, STATE_ON),
49+
command=lambda api, loc, opt: api.set_schedule_state(loc, STATE_ON, opt),
5050
options_key="available_schedules",
5151
),
5252
PlugwiseSelectEntityDescription(

tests/components/plugwise/test_select.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ async def test_adam_change_select_entity(
3838

3939
assert mock_smile_adam.set_schedule_state.call_count == 1
4040
mock_smile_adam.set_schedule_state.assert_called_with(
41-
"c50f167537524366a5af7aa3942feb1e", "Badkamer Schema", "on"
41+
"c50f167537524366a5af7aa3942feb1e",
42+
"on",
43+
"Badkamer Schema",
4244
)
4345

4446

0 commit comments

Comments
 (0)