From b07453dca404c42637733fa134259c7c531239c7 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk <11290930+bouwew@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:37:08 +0200 Subject: [PATCH] Implement remaining select-adaptions for Plugwise (#120544) --- homeassistant/components/plugwise/select.py | 2 +- tests/components/plugwise/test_select.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/plugwise/select.py b/homeassistant/components/plugwise/select.py index 99aecacb96b..b7d4a0a1ded 100644 --- a/homeassistant/components/plugwise/select.py +++ b/homeassistant/components/plugwise/select.py @@ -109,5 +109,5 @@ class PlugwiseSelectEntity(PlugwiseEntity, SelectEntity): self.device[LOCATION] and STATE_ON are required for the thermostat-schedule select. """ await self.coordinator.api.set_select( - self.entity_description.key, self.device[LOCATION], STATE_ON, option + self.entity_description.key, self.device[LOCATION], option, STATE_ON ) diff --git a/tests/components/plugwise/test_select.py b/tests/components/plugwise/test_select.py index a6245ff11e7..b9dec283bc4 100644 --- a/tests/components/plugwise/test_select.py +++ b/tests/components/plugwise/test_select.py @@ -42,8 +42,8 @@ async def test_adam_change_select_entity( mock_smile_adam.set_select.assert_called_with( "select_schedule", "c50f167537524366a5af7aa3942feb1e", - "on", "Badkamer Schema", + "on", ) @@ -74,6 +74,6 @@ async def test_adam_select_regulation_mode( mock_smile_adam_3.set_select.assert_called_with( "select_regulation_mode", "bc93488efab249e5bc54fd7e175a6f91", - "on", "heating", + "on", )