1
mirror of https://github.com/home-assistant/core synced 2024-09-25 00:41:32 +02:00

Upgrade aionanoleaf to 0.0.2 (#56845)

This commit is contained in:
Milan Meulemans 2021-09-30 23:04:09 +02:00 committed by GitHub
parent b00822f93a
commit efeee27be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,6 @@
"""Support for Nanoleaf Lights."""
from __future__ import annotations
from aiohttp import ServerDisconnectedError
from aionanoleaf import Nanoleaf, Unavailable
import voluptuous as vol
@ -176,9 +175,6 @@ class NanoleafLight(LightEntity):
"""Fetch new state data for this light."""
try:
await self._nanoleaf.get_info()
except ServerDisconnectedError:
# Retry the request once if the device disconnected
await self._nanoleaf.get_info()
except Unavailable:
self._attr_available = False
return

View File

@ -3,7 +3,7 @@
"name": "Nanoleaf",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/nanoleaf",
"requirements": ["aionanoleaf==0.0.1"],
"requirements": ["aionanoleaf==0.0.2"],
"zeroconf": ["_nanoleafms._tcp.local.", "_nanoleafapi._tcp.local."],
"homekit" : {
"models": [

View File

@ -219,7 +219,7 @@ aiomodernforms==0.1.8
aiomusiccast==0.9.2
# homeassistant.components.nanoleaf
aionanoleaf==0.0.1
aionanoleaf==0.0.2
# homeassistant.components.keyboard_remote
aionotify==0.2.0

View File

@ -146,7 +146,7 @@ aiomodernforms==0.1.8
aiomusiccast==0.9.2
# homeassistant.components.nanoleaf
aionanoleaf==0.0.1
aionanoleaf==0.0.2
# homeassistant.components.notion
aionotion==3.0.2