Enable Switcher assume buttons for all devices (#117993)

This commit is contained in:
Shay Levy 2024-05-23 21:29:49 +03:00 committed by GitHub
parent 978fe2d7b0
commit 36d77414c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -46,7 +46,7 @@ THERMOSTAT_BUTTONS = [
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",
@ -55,7 +55,7 @@ THERMOSTAT_BUTTONS = [
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",

View file

@ -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