mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Fix Plugwise Schedule selection (#103262)
This commit is contained in:
parent
5d2110c32c
commit
2a31eb6762
@ -40,7 +40,7 @@ SELECT_TYPES = (
|
|||||||
key="select_schedule",
|
key="select_schedule",
|
||||||
translation_key="select_schedule",
|
translation_key="select_schedule",
|
||||||
icon="mdi:calendar-clock",
|
icon="mdi:calendar-clock",
|
||||||
command=lambda api, loc, opt: api.set_schedule_state(loc, opt, STATE_ON),
|
command=lambda api, loc, opt: api.set_schedule_state(loc, STATE_ON, opt),
|
||||||
options_key="available_schedules",
|
options_key="available_schedules",
|
||||||
),
|
),
|
||||||
PlugwiseSelectEntityDescription(
|
PlugwiseSelectEntityDescription(
|
||||||
|
@ -40,5 +40,7 @@ async def test_adam_change_select_entity(
|
|||||||
|
|
||||||
assert mock_smile_adam.set_schedule_state.call_count == 1
|
assert mock_smile_adam.set_schedule_state.call_count == 1
|
||||||
mock_smile_adam.set_schedule_state.assert_called_with(
|
mock_smile_adam.set_schedule_state.assert_called_with(
|
||||||
"c50f167537524366a5af7aa3942feb1e", "Badkamer Schema", "on"
|
"c50f167537524366a5af7aa3942feb1e",
|
||||||
|
"on",
|
||||||
|
"Badkamer Schema",
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user