Fix demo (#23087)
* Fix demo * Fix types * Fix all the things * Fix type * Fix test * Lint
This commit is contained in:
parent
1d2e9b6915
commit
6b0180f753
20 changed files with 137 additions and 200 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue