mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
Enable Switcher assume buttons for all devices (#117993)
This commit is contained in:
parent
978fe2d7b0
commit
36d77414c6
@ -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",
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user