Convert service helper to use async_get_integration (#23023)
* Convert service helper to use async_get_integration * Fix tests
This commit is contained in:
parent
c8375be4b1
commit
f7d4c48199
4 changed files with 57 additions and 43 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue