Skip to content

Commit

Permalink
Fyx Mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed May 7, 2023
1 parent 5e09789 commit 6c16f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/powercalc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
discovery_manager = DiscoveryManager(hass, config)
await discovery_manager.start_discovery()

domain_groups = domain_config.get(CONF_CREATE_DOMAIN_GROUPS)
if domain_groups and isinstance(domain_groups, list):
domain_groups: list[str] | None = domain_config.get(CONF_CREATE_DOMAIN_GROUPS)
if domain_groups:

async def _create_domain_groups(event: None) -> None:
await create_domain_groups(
Expand Down

0 comments on commit 6c16f6e

Please sign in to comment.