core/tests/components/fully_kiosk
Mike Heath d3bf52c136
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-19 13:12:04 +02:00
..
fixtures Support Fully Kiosk Browser device discovery via MQTT (#88109) 2023-02-15 11:11:04 +01:00
__init__.py
conftest.py
test_binary_sensor.py Import `util.dt` as `dt_util` in `components/[e-f]*` (#93758) 2023-05-30 00:00:11 +03:00
test_button.py Update service call return values and error handling (#94657) 2023-06-16 07:01:40 -07:00
test_config_flow.py Remove incorrect constant usage in test (#91198) 2023-04-11 10:00:17 +02:00
test_diagnostics.py Adjust hass_client type hint in integration tests (#86954) 2023-02-02 16:29:57 -05:00
test_init.py Fix Fully Kiosk Browser merging entities when MAC empty (#87743) 2023-02-10 09:19:09 +01:00
test_media_player.py Add type hints to integration tests (part 7) (#87980) 2023-02-13 09:53:09 +01:00
test_number.py Import `util.dt` as `dt_util` in `components/[e-f]*` (#93758) 2023-05-30 00:00:11 +03:00
test_sensor.py Import `util.dt` as `dt_util` in `components/[e-f]*` (#93758) 2023-05-30 00:00:11 +03:00
test_services.py Register Fully Kiosk services regardless of setup result (#88647) 2023-06-19 13:12:04 +02:00
test_switch.py