mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 07:17:12 +00:00
Upgrade aionanoleaf to 0.0.2 (#56845)
This commit is contained in:
parent
b00822f93a
commit
efeee27be1
@ -1,7 +1,6 @@
|
|||||||
"""Support for Nanoleaf Lights."""
|
"""Support for Nanoleaf Lights."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from aiohttp import ServerDisconnectedError
|
|
||||||
from aionanoleaf import Nanoleaf, Unavailable
|
from aionanoleaf import Nanoleaf, Unavailable
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@ -176,9 +175,6 @@ class NanoleafLight(LightEntity):
|
|||||||
"""Fetch new state data for this light."""
|
"""Fetch new state data for this light."""
|
||||||
try:
|
try:
|
||||||
await self._nanoleaf.get_info()
|
await self._nanoleaf.get_info()
|
||||||
except ServerDisconnectedError:
|
|
||||||
# Retry the request once if the device disconnected
|
|
||||||
await self._nanoleaf.get_info()
|
|
||||||
except Unavailable:
|
except Unavailable:
|
||||||
self._attr_available = False
|
self._attr_available = False
|
||||||
return
|
return
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Nanoleaf",
|
"name": "Nanoleaf",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/nanoleaf",
|
"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."],
|
"zeroconf": ["_nanoleafms._tcp.local.", "_nanoleafapi._tcp.local."],
|
||||||
"homekit" : {
|
"homekit" : {
|
||||||
"models": [
|
"models": [
|
||||||
|
@ -219,7 +219,7 @@ aiomodernforms==0.1.8
|
|||||||
aiomusiccast==0.9.2
|
aiomusiccast==0.9.2
|
||||||
|
|
||||||
# homeassistant.components.nanoleaf
|
# homeassistant.components.nanoleaf
|
||||||
aionanoleaf==0.0.1
|
aionanoleaf==0.0.2
|
||||||
|
|
||||||
# homeassistant.components.keyboard_remote
|
# homeassistant.components.keyboard_remote
|
||||||
aionotify==0.2.0
|
aionotify==0.2.0
|
||||||
|
@ -146,7 +146,7 @@ aiomodernforms==0.1.8
|
|||||||
aiomusiccast==0.9.2
|
aiomusiccast==0.9.2
|
||||||
|
|
||||||
# homeassistant.components.nanoleaf
|
# homeassistant.components.nanoleaf
|
||||||
aionanoleaf==0.0.1
|
aionanoleaf==0.0.2
|
||||||
|
|
||||||
# homeassistant.components.notion
|
# homeassistant.components.notion
|
||||||
aionotion==3.0.2
|
aionotion==3.0.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user