* 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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 137 additions and 200 deletions

View file

@ -124,7 +124,11 @@ class EntityComponent:
"""Set up a config entry."""
platform_type = config_entry.domain
platform = await async_prepare_setup_platform(
self.hass, self.config, self.domain, platform_type)
self.hass,
# In future PR we should make hass_config part of the constructor
# params.
self.config or {},
self.domain, platform_type)
if platform is None:
return False