Skip to content

Commit

Permalink
Move roborock base entity to separate module (home-assistant#126135)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Sep 17, 2024
1 parent b262e15 commit 2588435
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from . import RoborockConfigEntry
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockCoordinatedEntityV1
from .entity import RoborockCoordinatedEntityV1


@dataclass(frozen=True, kw_only=True)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from . import RoborockConfigEntry
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockEntityV1
from .entity import RoborockEntityV1


@dataclass(frozen=True, kw_only=True)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from . import RoborockConfigEntry
from .const import DEFAULT_DRAWABLES, DOMAIN, DRAWABLES, IMAGE_CACHE_INTERVAL, MAP_SLEEP
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockCoordinatedEntityV1
from .entity import RoborockCoordinatedEntityV1


async def async_setup_entry(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from . import RoborockConfigEntry
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockEntityV1
from .entity import RoborockEntityV1

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from . import RoborockConfigEntry
from .const import MAP_SLEEP
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockCoordinatedEntityV1
from .entity import RoborockCoordinatedEntityV1


@dataclass(frozen=True, kw_only=True)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

from . import RoborockConfigEntry
from .coordinator import RoborockDataUpdateCoordinator, RoborockDataUpdateCoordinatorA01
from .device import RoborockCoordinatedEntityA01, RoborockCoordinatedEntityV1
from .entity import RoborockCoordinatedEntityA01, RoborockCoordinatedEntityV1


@dataclass(frozen=True, kw_only=True)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from . import RoborockConfigEntry
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockEntityV1
from .entity import RoborockEntityV1

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from . import RoborockConfigEntry
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockEntityV1
from .entity import RoborockEntityV1

_LOGGER = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/roborock/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from . import RoborockConfigEntry
from .const import DOMAIN, GET_MAPS_SERVICE_NAME
from .coordinator import RoborockDataUpdateCoordinator
from .device import RoborockCoordinatedEntityV1
from .entity import RoborockCoordinatedEntityV1

STATE_CODE_TO_STATE = {
RoborockStateCode.starting: STATE_IDLE, # "Starting"
Expand Down

0 comments on commit 2588435

Please sign in to comment.