Rename Withings coordinator file (#100899)
Rename common.py to coordinator.py
This commit is contained in:
parent
249e20f8e5
commit
b0a7e68984
6 changed files with 6 additions and 6 deletions
|
@ -36,8 +36,8 @@ from homeassistant.helpers.typing import ConfigType
|
|||
|
||||
from . import const
|
||||
from .api import ConfigEntryWithingsApi
|
||||
from .common import WithingsDataUpdateCoordinator
|
||||
from .const import CONF_USE_WEBHOOK, CONFIG, LOGGER
|
||||
from .coordinator import WithingsDataUpdateCoordinator
|
||||
|
||||
DOMAIN = const.DOMAIN
|
||||
PLATFORMS = [Platform.BINARY_SENSOR, Platform.SENSOR]
|
||||
|
|
|
@ -14,8 +14,8 @@ from homeassistant.config_entries import ConfigEntry
|
|||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .common import WithingsDataUpdateCoordinator
|
||||
from .const import DOMAIN, Measurement
|
||||
from .coordinator import WithingsDataUpdateCoordinator
|
||||
from .entity import WithingsEntity, WithingsEntityDescription
|
||||
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ from homeassistant.helpers.device_registry import DeviceInfo
|
|||
from homeassistant.helpers.entity import EntityDescription
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from .common import WithingsDataUpdateCoordinator
|
||||
from .const import DOMAIN, Measurement
|
||||
from .coordinator import WithingsDataUpdateCoordinator
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
@ -23,7 +23,6 @@ from homeassistant.const import (
|
|||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .common import WithingsDataUpdateCoordinator
|
||||
from .const import (
|
||||
DOMAIN,
|
||||
SCORE_POINTS,
|
||||
|
@ -33,6 +32,7 @@ from .const import (
|
|||
UOM_MMHG,
|
||||
Measurement,
|
||||
)
|
||||
from .coordinator import WithingsDataUpdateCoordinator
|
||||
from .entity import WithingsEntity, WithingsEntityDescription
|
||||
|
||||
|
||||
|
|
|
@ -142,10 +142,10 @@ def disable_webhook_delay():
|
|||
|
||||
mock = AsyncMock()
|
||||
with patch(
|
||||
"homeassistant.components.withings.common.SUBSCRIBE_DELAY",
|
||||
"homeassistant.components.withings.coordinator.SUBSCRIBE_DELAY",
|
||||
timedelta(seconds=0),
|
||||
), patch(
|
||||
"homeassistant.components.withings.common.UNSUBSCRIBE_DELAY",
|
||||
"homeassistant.components.withings.coordinator.UNSUBSCRIBE_DELAY",
|
||||
timedelta(seconds=0),
|
||||
):
|
||||
yield mock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue