Skip to content

Commit

Permalink
Enable Switcher assume buttons for all devices (#117993)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecode authored May 23, 2024
1 parent 978fe2d commit 36d7741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/switcher_kis/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SwitcherThermostatButtonEntityDescription(ButtonEntityDescription):
press_fn=lambda api, remote: api.control_breeze_device(
remote, state=DeviceState.ON, update_state=True
),
supported=lambda remote: bool(remote.on_off_type),
supported=lambda _: True,
),
SwitcherThermostatButtonEntityDescription(
key="assume_off",
Expand All @@ -55,7 +55,7 @@ class SwitcherThermostatButtonEntityDescription(ButtonEntityDescription):
press_fn=lambda api, remote: api.control_breeze_device(
remote, state=DeviceState.OFF, update_state=True
),
supported=lambda remote: bool(remote.on_off_type),
supported=lambda _: True,
),
SwitcherThermostatButtonEntityDescription(
key="vertical_swing_on",
Expand Down
2 changes: 0 additions & 2 deletions tests/components/switcher_kis/test_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ async def test_swing_button(
await init_integration(hass)
assert mock_bridge

assert hass.states.get(ASSUME_ON_EID) is None
assert hass.states.get(ASSUME_OFF_EID) is None
assert hass.states.get(SWING_ON_EID) is not None
assert hass.states.get(SWING_OFF_EID) is not None

Expand Down

0 comments on commit 36d7741

Please sign in to comment.