Skip to content

Commit

Permalink
Ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jul 8, 2023
1 parent ff9b059 commit b843537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/powercalc/sensors/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def create_group_sensors_from_config_entry(
area_entities: list[Entity] = []
if CONF_AREA in entry.data:
area_entities = resolve_include_entities(
hass, {CONF_AREA: entry.data[CONF_AREA]}
hass, {CONF_AREA: entry.data[CONF_AREA]},
)

power_sensor_ids: set[str] = set(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ async def test_create_group_entry_without_unique_id(hass: HomeAssistant) -> None


async def test_group_include_area(
hass: HomeAssistant, entity_reg: EntityRegistry, area_reg: AreaRegistry
hass: HomeAssistant, entity_reg: EntityRegistry, area_reg: AreaRegistry,
) -> None:
# Create light entity and add to group My area
light = MockLight("test")
Expand All @@ -722,7 +722,7 @@ async def test_group_include_area(
entity_reg.async_update_entity(light.entity_id, area_id=area.id)

result = await _goto_virtual_power_strategy_step(
hass, CalculationStrategy.FIXED, {CONF_ENTITY_ID: "light.test"}
hass, CalculationStrategy.FIXED, {CONF_ENTITY_ID: "light.test"},
)
await _set_virtual_power_configuration(
hass,
Expand Down

0 comments on commit b843537

Please sign in to comment.