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 Oct 21, 2022
1 parent a34a400 commit 4dba3f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
from homeassistant.helpers import entity_registry as er
from homeassistant.helpers.typing import ConfigType, StateType
from homeassistant.setup import async_setup_component
from pytest_homeassistant_custom_component.common import (
MockConfigEntry,
)
from pytest_homeassistant_custom_component.common import MockConfigEntry

import custom_components.test.light as test_light_platform
from custom_components.powercalc.const import (
Expand Down
8 changes: 6 additions & 2 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ async def test_autodiscovered_option_flow(hass: HomeAssistant):
CONF_MANUFACTURER: "signify",
CONF_MODEL: "LCT010",
},
config_entries.SOURCE_INTEGRATION_DISCOVERY
config_entries.SOURCE_INTEGRATION_DISCOVERY,
)

result = await _initialize_options_flow(hass, entry)
Expand All @@ -748,7 +748,11 @@ async def test_autodiscovered_option_flow(hass: HomeAssistant):
assert not entry.data[CONF_CREATE_ENERGY_SENSOR]


def _create_mock_entry(hass: HomeAssistant, entry_data: ConfigType, source: str = config_entries.SOURCE_USER) -> MockConfigEntry:
def _create_mock_entry(
hass: HomeAssistant,
entry_data: ConfigType,
source: str = config_entries.SOURCE_USER,
) -> MockConfigEntry:
entry = MockConfigEntry(domain=DOMAIN, data=entry_data, source=source)
entry.add_to_hass(hass)

Expand Down

0 comments on commit 4dba3f9

Please sign in to comment.