Skip to content

Commit

Permalink
Update coordinator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius authored Nov 30, 2024
1 parent 931f8f8 commit a21b0f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/heatzy/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed

from .const import CONF_WEBSOCKET, DOMAIN
from .fakedevices import FAKE_DEVICES

_LOGGER = logging.getLogger(__name__)
SCAN_INTERVAL = 60
Expand Down Expand Up @@ -92,8 +91,7 @@ async def _async_update_data(self) -> dict[str, Any]:

try:
if not self.api.websocket.is_updated:
# return await self.api.async_get_devices()
return FAKE_DEVICES
return await self.api.async_get_devices()
except HeatzyException as error:
raise UpdateFailed(f"Invalid response from API: {error}") from error
else:
Expand Down

0 comments on commit a21b0f5

Please sign in to comment.