mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Reduce MELCloud poll frequency to avoid throttling (#109750)
This commit is contained in:
parent
3752e14362
commit
189f3dacfb
@ -22,7 +22,7 @@ from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=60)
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=5)
|
||||
|
||||
PLATFORMS = [Platform.CLIMATE, Platform.SENSOR, Platform.WATER_HEATER]
|
||||
|
||||
@ -138,8 +138,9 @@ async def mel_devices_setup(
|
||||
all_devices = await get_devices(
|
||||
token,
|
||||
session,
|
||||
conf_update_interval=timedelta(minutes=5),
|
||||
device_set_debounce=timedelta(seconds=1),
|
||||
user_update_interval=timedelta(minutes=30),
|
||||
conf_update_interval=timedelta(minutes=15),
|
||||
device_set_debounce=timedelta(seconds=2),
|
||||
)
|
||||
wrapped_devices: dict[str, list[MelCloudDevice]] = {}
|
||||
for device_type, devices in all_devices.items():
|
||||
|
Loading…
x
Reference in New Issue
Block a user