Upgrade aionanoleaf to 0.0.2 (#56845)
This commit is contained in:
parent
b00822f93a
commit
efeee27be1
4 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue