1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00
* Fix demo

* Fix types

* Fix all the things

* Fix type

* Fix test

* Lint
This commit is contained in:
Paulus Schoutsen
2019-04-14 16:59:06 -07:00
committed by GitHub
parent 1d2e9b6915
commit 6b0180f753
20 changed files with 137 additions and 200 deletions

View File

@@ -132,6 +132,10 @@ class Integration:
)
return cache[full_name] # type: ignore
def __repr__(self) -> str:
"""Text representation of class."""
return "<Integration {}: {}>".format(self.domain, self.pkg_path)
async def async_get_integration(hass: 'HomeAssistant', domain: str)\
-> Integration: