Fix Netatmo data class update (#51177)

pull/51185/head
Tobias Sauerwein 2021-05-28 08:00:11 +02:00 committed by GitHub
parent 6ad29aec2c
commit eb66f8ef6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ class NetatmoDataHandler:
time() + data_class["interval"]
)
await self.async_fetch_data(data_class["name"])
if data_class_name := data_class["name"]:
await self.async_fetch_data(data_class_name)
self._queue.rotate(BATCH_SIZE)