Fix Plugwise Schedule selection (#103262)
This commit is contained in:
parent
5d2110c32c
commit
2a31eb6762
2 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,7 @@ SELECT_TYPES = (
|
|||
key="select_schedule",
|
||||
translation_key="select_schedule",
|
||||
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",
|
||||
),
|
||||
PlugwiseSelectEntityDescription(
|
||||
|
|
|
@ -40,5 +40,7 @@ async def test_adam_change_select_entity(
|
|||
|
||||
assert mock_smile_adam.set_schedule_state.call_count == 1
|
||||
mock_smile_adam.set_schedule_state.assert_called_with(
|
||||
"c50f167537524366a5af7aa3942feb1e", "Badkamer Schema", "on"
|
||||
"c50f167537524366a5af7aa3942feb1e",
|
||||
"on",
|
||||
"Badkamer Schema",
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue