home-assistant-core/tests
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
components Don't allow switch toggle when device in locked in AVM FRITZ!SmartHome (#120132) 2024-06-26 21:45:17 +02:00
fixtures
hassfest
helpers Add primary_config_entry attribute to device registry entries (#119959) 2024-06-26 12:26:24 +02:00
non_packaged_scripts
pylint
resources
script
scripts
snapshots
test_util
testing_config Add MockToggleEntity type hints in tests (#120075) 2024-06-21 12:32:03 +02:00
util Adjust blocking I/O messages to provide developer help (#120113) 2024-06-21 12:55:22 -05:00
__init__.py
common.py Remove hass_recorder test fixture (#120295) 2024-06-24 11:14:08 +02:00
conftest.py Verify default timezone is restored when test ends (#116216) 2024-06-26 09:41:16 +02:00
ignore_uncaught_exceptions.py
patch_time.py Add explanatory comment in tests/patch_time.py (#120572) 2024-06-26 15:49:34 +02:00
ruff.toml
syrupy.py Add primary_config_entry attribute to device registry entries (#119959) 2024-06-26 12:26:24 +02:00
test_backports.py
test_block_async_io.py Adjust blocking I/O messages to provide developer help (#120113) 2024-06-21 12:55:22 -05:00
test_bootstrap.py
test_circular_imports.py
test_config.py Remove legacy template hass config option (#119925) 2024-06-21 12:53:55 +02:00
test_config_entries.py
test_const.py
test_core.py Simplify EVENT_STATE_REPORTED (#120508) 2024-06-26 11:23:26 +02:00
test_data_entry_flow.py Section support for data entry flows (#118369) 2024-06-25 11:02:00 +02:00
test_exceptions.py
test_loader.py Add MockModule type hints in tests (#120007) 2024-06-21 11:11:48 +02:00
test_main.py
test_requirements.py
test_runner.py
test_setup.py Refactor PLATFORM_SCHEMA imports in tests (#120566) 2024-06-26 16:09:20 +02:00
test_test_fixtures.py
typing.py