Add default polling for landis gyr heat meter (#77078)

pull/77140/head
Vincent Knoop Pathuis 2022-08-21 20:16:38 +02:00 committed by GitHub
parent ed7ceb0268
commit 90ef87f4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
"""The Landis+Gyr Heat Meter integration."""
from __future__ import annotations
from datetime import timedelta
import logging
from ultraheat_api import HeatMeterService, UltraheatReader
@ -38,7 +39,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
_LOGGER,
name="ultraheat_gateway",
update_method=async_update_data,
update_interval=None,
update_interval=timedelta(days=1),
)
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator