Small import fixes
This commit is contained in:
@@ -167,7 +167,7 @@ class GeoRideActiveSubscriptionBinarySensorEntity(GeoRideBinarySensorEntity):
|
|||||||
"""state value property"""
|
"""state value property"""
|
||||||
tracker = self._tracker_device.tracker
|
tracker = self._tracker_device.tracker
|
||||||
if tracker.is_oldsubscription:
|
if tracker.is_oldsubscription:
|
||||||
if .tracker.subscription_id is not None:
|
if tracker.subscription_id is not None:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from homeassistant.helpers.update_coordinator import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from .const import DOMAIN as GEORIDE_DOMAIN
|
from .const import DOMAIN as GEORIDE_DOMAIN
|
||||||
from .device import Device
|
from .device import Device, DeviceBeacon
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import logging
|
|||||||
from typing import Any, Mapping
|
from typing import Any, Mapping
|
||||||
|
|
||||||
from homeassistant.components.siren import SirenEntity
|
from homeassistant.components.siren import SirenEntity
|
||||||
from homeassistant.components.siren import ENTITY_ID_FORMAT
|
|
||||||
|
|
||||||
from homeassistant.helpers.update_coordinator import (
|
from homeassistant.helpers.update_coordinator import (
|
||||||
CoordinatorEntity,
|
CoordinatorEntity,
|
||||||
@@ -17,6 +16,7 @@ import georideapilib.api as GeoRideApi
|
|||||||
|
|
||||||
from .const import DOMAIN as GEORIDE_DOMAIN
|
from .const import DOMAIN as GEORIDE_DOMAIN
|
||||||
from .device import Device
|
from .device import Device
|
||||||
|
ENTITY_ID_FORMAT: Final = DOMAIN + ".{}"
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user