Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 7, 2023
1 parent dd5a433 commit 4c63894
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions custom_components/powercalc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:

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(
hass,
Expand Down
13 changes: 8 additions & 5 deletions tests/power_profile/device_types/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ async def test_network_device(

power_sensor_id = "sensor.wifi_repeater_device_power"

await run_powercalc_setup(hass, {
CONF_ENTITY_ID: binary_sensor_id,
CONF_MANUFACTURER: manufacturer,
CONF_MODEL: model,
})
await run_powercalc_setup(
hass,
{
CONF_ENTITY_ID: binary_sensor_id,
CONF_MANUFACTURER: manufacturer,
CONF_MODEL: model,
},
)

power_state = hass.states.get(power_sensor_id)
assert power_state
Expand Down
3 changes: 2 additions & 1 deletion tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ async def test_fixed_power_sensor_from_yaml(hass: HomeAssistant) -> None:


async def test_legacy_yaml_platform_configuration(
hass: HomeAssistant, issue_registry: ir.IssueRegistry,
hass: HomeAssistant,
issue_registry: ir.IssueRegistry,
) -> None:
assert await async_setup_component(
hass,
Expand Down

0 comments on commit 4c63894

Please sign in to comment.