core/tests
Mike Heath 3f936993a9
Register Fully Kiosk services regardless of setup result (#88647)
* Register services at integration level

If HA is unable to connect to Fully Kiosk, the services don't get
registered. This can cause repair to create notifications saying
that the 'fully_kiosk.load_url' service is unknown.

Fixes #85444

* Validate config entry is loaded

* Refactor service invocation

Raises `HomeAssistantError` when the user provides an device id that is
not in the device registry or a device that is not a Fully Kiosk
device. If the device's config entry is not loaded, a warning is
logged.

* Update homeassistant/components/fully_kiosk/services.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Assert HomeAssistantError when integration unloaded

* Remove unused import

* Set CONFIG_SCHEMA

* Update homeassistant/components/fully_kiosk/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add test for non fkb devices targets in service calls

* Apply suggestions from code review

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-06-23 16:35:19 +02:00
..
auth Use call_at for events instead call_later (#93431) 2023-05-24 21:04:07 +02:00
backports
components Register Fully Kiosk services regardless of setup result (#88647) 2023-06-23 16:35:19 +02:00
fixtures
hassfest
helpers Make RestoreStateData.async_get_instance backwards compatible (#93924) 2023-06-01 15:07:02 -04:00
pylint
resources
scripts
test_util
testing_config Add `datetime` platform (#81943) 2023-05-29 23:24:15 +02:00
util Language codes for Hebrew (#93681) 2023-05-30 22:27:32 -04:00
__init__.py
bandit.yaml
common.py Migrate restore_state helper to use registry loading pattern (#93773) 2023-05-30 20:48:17 -05:00
conftest.py Don't mock non async with AsyncMock (#93749) 2023-05-29 20:20:27 +02:00
ignore_uncaught_exceptions.py
ruff.toml
syrupy.py Use ReadOnlyDict for entity registry options (#93824) 2023-05-30 20:11:39 -04:00
test_bootstrap.py Improve comment on patching the _import method in test bootstrap dependencies test (#91848) 2023-04-22 13:40:38 +02:00
test_config.py
test_config_entries.py Import `util.dt` as `dt_util` in remaining tests, enforce with ruff (#93765) 2023-05-30 23:30:31 +03:00
test_core.py Remove as_compressed_state cache (#93169) 2023-05-16 12:39:16 -05:00
test_data_entry_flow.py
test_exceptions.py
test_loader.py Complete persistent notifications migration (#92828) 2023-05-25 23:09:13 -04:00
test_main.py
test_requirements.py
test_runner.py
test_setup.py Detect attempt to setup config entry integration via YAML (#93589) 2023-05-29 21:01:47 +02:00
test_test_fixtures.py
typing.py