Convert service helper to use async_get_integration (#23023)

* Convert service helper to use async_get_integration

* Fix tests
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-04-12 10:09:17 -07:00
1 parent c8375be4b1
commit f7d4c48199
4 files changed
+57 -43

No files matched your search

+7 -6
View File
@@ -164,12 +164,13 @@ async def test_get_integration_custom_component(hass):
def test_integration_properties(hass):
"""Test integration properties."""
integration = loader.Integration(hass, 'homeassistant.components.hue', {
'name': 'Philips Hue',
'domain': 'hue',
'dependencies': ['test-dep'],
'requirements': ['test-req==1.0.0'],
})
integration = loader.Integration(
hass, 'homeassistant.components.hue', None, {
'name': 'Philips Hue',
'domain': 'hue',
'dependencies': ['test-dep'],
'requirements': ['test-req==1.0.0'],
})
assert integration.name == "Philips Hue"
assert integration.domain == 'hue'
assert integration.dependencies == ['test-dep']