Skip to content

Commit

Permalink
Disable always_update in yale_smart_alarm coordinator (home-assistant…
Browse files Browse the repository at this point in the history
…#97426)

always update
  • Loading branch information
gjohansson-ST authored Jul 28, 2023
1 parent 1b6f15e commit fc38451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/yale_smart_alarm/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .const import DEFAULT_SCAN_INTERVAL, DOMAIN, LOGGER, YALE_BASE_ERRORS


class YaleDataUpdateCoordinator(DataUpdateCoordinator):
class YaleDataUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]):
"""A Yale Data Update Coordinator."""

def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
Expand All @@ -28,6 +28,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
LOGGER,
name=DOMAIN,
update_interval=timedelta(seconds=DEFAULT_SCAN_INTERVAL),
always_update=False,
)

async def _async_update_data(self) -> dict[str, Any]:
Expand Down

0 comments on commit fc38451

Please sign in to comment.