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 Aug 7, 2023
1 parent bb0126a commit d18ec0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion custom_components/powercalc/config_flow.py
Expand Up @@ -386,7 +386,8 @@ async def async_step_virtual_power(
)

async def forward_to_strategy_step(
self, strategy: CalculationStrategy,
self,
strategy: CalculationStrategy,
) -> FlowResult:
if strategy == CalculationStrategy.FIXED:
return await self.async_step_fixed()
Expand Down
3 changes: 2 additions & 1 deletion custom_components/powercalc/strategy/playbook.py
Expand Up @@ -167,7 +167,8 @@ async def _load_playbook(self, playbook_id: str) -> Playbook:
entries.append(PlaybookEntry(time=float(row[0]), power=Decimal(row[1])))

self._loaded_playbooks[playbook_id] = Playbook(
key=playbook_id, queue=PlaybookQueue(entries),
key=playbook_id,
queue=PlaybookQueue(entries),
)

return self._loaded_playbooks[playbook_id]
Expand Down
4 changes: 3 additions & 1 deletion tests/group_include/test_include.py
Expand Up @@ -554,7 +554,9 @@ async def test_area_groups_as_subgroups(
}


async def test_power_group_does_not_include_binary_sensors(hass: HomeAssistant, area_reg: AreaRegistry) -> None:
async def test_power_group_does_not_include_binary_sensors(
hass: HomeAssistant, area_reg: AreaRegistry
) -> None:
area = area_reg.async_get_or_create("Bathroom")
await hass.async_block_till_done()

Expand Down

0 comments on commit d18ec0d

Please sign in to comment.