Avoid calling hass internals when adding mock config entry in Fully Kiosk (#110291)

This commit is contained in:
Jan-Philipp Benecke 2024-02-11 21:17:54 +01:00 committed by GitHub
parent 932d930084
commit 3342e6ddbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -163,11 +163,11 @@ async def test_service_called_with_non_fkb_target_devices(
"""Services raise exception when no valid devices provided.""" """Services raise exception when no valid devices provided."""
other_domain = "NotFullyKiosk" other_domain = "NotFullyKiosk"
other_config_id = "555" other_config_id = "555"
await hass.config_entries.async_add( other_mock_config_entry = MockConfigEntry(
MockConfigEntry( title="Not Fully Kiosk", domain=other_domain, entry_id=other_config_id
title="Not Fully Kiosk", domain=other_domain, entry_id=other_config_id
)
) )
other_mock_config_entry.add_to_hass(hass)
device_entry = device_registry.async_get_or_create( device_entry = device_registry.async_get_or_create(
config_entry_id=other_config_id, config_entry_id=other_config_id,
identifiers={ identifiers={