diff --git a/homeassistant/components/surepetcare/__init__.py b/homeassistant/components/surepetcare/__init__.py index a6e9dca703c..f04af0dd795 100644 --- a/homeassistant/components/surepetcare/__init__.py +++ b/homeassistant/components/surepetcare/__init__.py @@ -95,7 +95,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ) hass.data[DOMAIN] = coordinator - await coordinator.async_config_entry_first_refresh() + await coordinator.async_refresh() # load platforms for platform in PLATFORMS: diff --git a/homeassistant/components/surepetcare/binary_sensor.py b/homeassistant/components/surepetcare/binary_sensor.py index 50a890112bc..0c223ae3ac1 100644 --- a/homeassistant/components/surepetcare/binary_sensor.py +++ b/homeassistant/components/surepetcare/binary_sensor.py @@ -52,7 +52,7 @@ async def async_setup_platform( async_add_entities(entities) -class SurePetcareBinarySensor(BinarySensorEntity, CoordinatorEntity): +class SurePetcareBinarySensor(CoordinatorEntity, BinarySensorEntity): """A binary sensor implementation for Sure Petcare Entities.""" def __init__( diff --git a/homeassistant/components/surepetcare/sensor.py b/homeassistant/components/surepetcare/sensor.py index 6b07408f6b1..53d5d985e41 100644 --- a/homeassistant/components/surepetcare/sensor.py +++ b/homeassistant/components/surepetcare/sensor.py @@ -41,7 +41,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= async_add_entities(entities) -class SureBattery(SensorEntity, CoordinatorEntity): +class SureBattery(CoordinatorEntity, SensorEntity): """A sensor implementation for Sure Petcare Entities.""" def __init__(self, _id: int, coordinator: DataUpdateCoordinator) -> None: