Skip to content

Commit

Permalink
Fix Plugwise Schedule selection (home-assistant#103262)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoMPaTech authored Nov 3, 2023
1 parent 5d2110c commit 2a31eb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/plugwise/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class PlugwiseSelectEntityDescription(
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(
Expand Down
4 changes: 3 additions & 1 deletion tests/components/plugwise/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

0 comments on commit 2a31eb6

Please sign in to comment.