Skip to content

Commit

Permalink
ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Mar 8, 2024
1 parent 1aceda1 commit beb4746
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions custom_components/powercalc/sensors/group.py
Expand Up @@ -39,14 +39,13 @@
from homeassistant.helpers import start
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.event import (
EventStateChangedData, async_track_state_change_event,
async_track_state_change_event,
async_track_time_interval,
)
from homeassistant.helpers.json import JSONEncoder
from homeassistant.helpers.singleton import singleton
from homeassistant.helpers.storage import Store
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType, EventType
from homeassistant.util import Throttle
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
from homeassistant.util.unit_conversion import (
EnergyConverter,
PowerConverter,
Expand Down
2 changes: 1 addition & 1 deletion tests/group_include/test_include.py
Expand Up @@ -1085,7 +1085,7 @@ async def test_include_logs_warning(hass: HomeAssistant, caplog: pytest.LogCaptu
def _create_powercalc_config_entry(
hass: HomeAssistant,
source_entity_id: str,
unique_id: str | None = None
unique_id: str | None = None,
) -> MockConfigEntry:
__, object_id = split_entity_id(source_entity_id)

Expand Down
3 changes: 2 additions & 1 deletion tests/testing_config/custom_components/test/light.py
Expand Up @@ -4,6 +4,7 @@
Call init before using it in your tests to ensure clean test data.
"""
import uuid
from typing import ClassVar

from homeassistant.components.light import ColorMode, LightEntity, LightEntityFeature
from homeassistant.config_entries import ConfigEntry
Expand Down Expand Up @@ -56,7 +57,7 @@ class MockLight(MockToggleEntity, LightEntity):
color_mode = ColorMode.BRIGHTNESS
max_mireds = 500
min_mireds = 153
supported_color_modes = [ColorMode.BRIGHTNESS]
supported_color_modes: ClassVar = [ColorMode.BRIGHTNESS]
supported_features = LightEntityFeature(0)

brightness = None
Expand Down

0 comments on commit beb4746

Please sign in to comment.