Skip to content

Commit

Permalink
Reduce MELCloud poll frequency to avoid throttling (#109750)
Browse files Browse the repository at this point in the history
  • Loading branch information
vilppuvuorinen authored and frenck committed Feb 5, 2024
1 parent d30a2e3 commit 6547691
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions homeassistant/components/melcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

_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]

Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 6547691

Please sign in to comment.