core/tests/components/fritzbox
Florian 9b2915efed
Don't allow switch toggle when device in locked in AVM FRITZ!SmartHome (#120132)
* fix: set state of the FritzBox-Switch to disabled if the option for manuel switching in the userinterface is disabled

* feat: raise an error instead of disabling switch

* feat: rename method signature

* fix: tests

* fix: wrong import

* feat: Update homeassistant/components/fritzbox/strings.json

Update error message

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* Update tests/components/fritzbox/test_switch.py

feat: update test

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

* make ruff happy

* fix expected error message check

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-26 21:45:17 +02:00
..
__init__.py Don't allow switch toggle when device in locked in AVM FRITZ!SmartHome (#120132) 2024-06-26 21:45:17 +02:00
conftest.py Store runtime data inside the config entry in AVM Fritz!Smarthome (#116523) 2024-05-01 20:51:39 +02:00
const.py
test_binary_sensor.py
test_button.py
test_climate.py Add support to consider device holiday and summer mode in AVM Fritz!Smarthome (#119862) 2024-06-22 12:40:03 +02:00
test_config_flow.py Add reconfigure flow to AVM Fritz!SmartHome (#116047) 2024-04-24 13:06:14 +02:00
test_coordinator.py
test_cover.py
test_diagnostics.py
test_init.py Store runtime data inside the config entry in AVM Fritz!Smarthome (#116523) 2024-05-01 20:51:39 +02:00
test_light.py
test_sensor.py
test_switch.py Don't allow switch toggle when device in locked in AVM FRITZ!SmartHome (#120132) 2024-06-26 21:45:17 +02:00