home-assistant-core/homeassistant
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
..
auth Create repair when HA auth provider is running in legacy mode (#119975) 2024-06-26 09:00:33 +02:00
backports
brands
components Don't allow switch toggle when device in locked in AVM FRITZ!SmartHome (#120132) 2024-06-26 21:45:17 +02:00
generated Add config flow to statistics (#120496) 2024-06-26 16:06:35 +02:00
helpers Add primary_config_entry attribute to device registry entries (#119959) 2024-06-26 12:26:24 +02:00
scripts
util
__init__.py
__main__.py
block_async_io.py
bootstrap.py
config.py Improve config vol.Invalid typing (#120482) 2024-06-26 03:03:54 +02:00
config_entries.py
const.py Bump version to 2024.8.0dev0 (#120577) 2024-06-26 16:55:08 +02:00
core.py Simplify EVENT_STATE_REPORTED (#120508) 2024-06-26 11:23:26 +02:00
data_entry_flow.py Improve schema typing (3) (#120521) 2024-06-26 11:30:07 +02:00
exceptions.py
loader.py
package_constraints.txt Bump intents to 2024.6.26 (#120584) 2024-06-26 11:13:01 -05:00
py.typed
requirements.py Make fetching integrations with requirements safer (#120481) 2024-06-26 08:51:57 +02:00
runner.py
setup.py
strings.json