Skip to content

Commit

Permalink
fix: correct weird imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vermut committed May 11, 2024
1 parent a6a35da commit 84ef050
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions custom_components/openmower/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import math

from homeassistant.components import mqtt
from homeassistant.components.device_tracker import TrackerEntity
from homeassistant.components.device_tracker import TrackerEntity, SourceType
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PREFIX, CONF_LATITUDE, CONF_LONGITUDE
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.util.json import json_loads_object

from .const import DOMAIN
from ..device_tracker import SourceType

_LOGGER = logging.getLogger(__name__)

Expand Down
6 changes: 3 additions & 3 deletions custom_components/openmower/lawn_mower.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import logging

from homeassistant.const import CONF_PREFIX
from helpers.device_registry import DeviceInfo
from homeassistant.components import mqtt
from homeassistant.components.lawn_mower import (
LawnMowerActivity,
LawnMowerEntity,
LawnMowerEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PREFIX
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.util.json import json_loads_object

from .const import DOMAIN
from homeassistant.components import mqtt

_LOGGER = logging.getLogger(__name__)

Expand Down
7 changes: 4 additions & 3 deletions custom_components/openmower/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

import logging

from homeassistant.const import PERCENTAGE, SIGNAL_STRENGTH_DECIBELS, CONF_PREFIX
from homeassistant.components import mqtt
from homeassistant.components.sensor import SensorEntity, SensorDeviceClass
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import PERCENTAGE, CONF_PREFIX
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from .const import DOMAIN
from homeassistant.components import mqtt
from homeassistant.util.json import json_loads_object

from .const import DOMAIN

_LOGGER = logging.getLogger(__name__)


Expand Down

0 comments on commit 84ef050

Please sign in to comment.