Convert service helper to use async_get_integration (#23023)
* Convert service helper to use async_get_integration * Fix tests
This commit is contained in:
1 parent
c8375be4b1
commit
f7d4c48199
4 files changed
+57
-43
No files matched your search
+1
-1
@@ -904,7 +904,7 @@ async def get_system_health_info(hass, domain):
|
||||
def mock_integration(hass, module):
|
||||
"""Mock an integration."""
|
||||
integration = loader.Integration(
|
||||
hass, 'homeassisant.components.{}'.format(module.DOMAIN),
|
||||
hass, 'homeassisant.components.{}'.format(module.DOMAIN), None,
|
||||
loader.manifest_from_legacy_module(module))
|
||||
|
||||
_LOGGER.info("Adding mock integration: %s", module.DOMAIN)
|
||||
|
||||
Reference in new issue
Block a user