mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Upgrade wled to 0.7.0 (#52017)
This commit is contained in:
parent
b46bcdeeb1
commit
23719bbb5e
@ -5,6 +5,7 @@ from functools import partial
|
|||||||
from typing import Any, Tuple, cast
|
from typing import Any, Tuple, cast
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
from wled import Preset
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
@ -222,9 +223,11 @@ class WLEDSegmentLight(WLEDEntity, LightEntity):
|
|||||||
if playlist == -1:
|
if playlist == -1:
|
||||||
playlist = None
|
playlist = None
|
||||||
|
|
||||||
preset: int | None = self.coordinator.data.state.preset
|
preset: int | None = None
|
||||||
if preset == -1:
|
if isinstance(self.coordinator.data.state.preset, Preset):
|
||||||
preset = None
|
preset = self.coordinator.data.state.preset.preset_id
|
||||||
|
elif self.coordinator.data.state.preset != -1:
|
||||||
|
preset = self.coordinator.data.state.preset
|
||||||
|
|
||||||
segment = self.coordinator.data.state.segments[self._segment]
|
segment = self.coordinator.data.state.segments[self._segment]
|
||||||
return {
|
return {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "WLED",
|
"name": "WLED",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/wled",
|
"documentation": "https://www.home-assistant.io/integrations/wled",
|
||||||
"requirements": ["wled==0.6.0"],
|
"requirements": ["wled==0.7.0"],
|
||||||
"zeroconf": ["_wled._tcp.local."],
|
"zeroconf": ["_wled._tcp.local."],
|
||||||
"codeowners": ["@frenck"],
|
"codeowners": ["@frenck"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
|
@ -2365,7 +2365,7 @@ wirelesstagpy==0.4.1
|
|||||||
withings-api==2.3.2
|
withings-api==2.3.2
|
||||||
|
|
||||||
# homeassistant.components.wled
|
# homeassistant.components.wled
|
||||||
wled==0.6.0
|
wled==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf_smartset==0.1.11
|
wolf_smartset==0.1.11
|
||||||
|
@ -1283,7 +1283,7 @@ wiffi==1.0.1
|
|||||||
withings-api==2.3.2
|
withings-api==2.3.2
|
||||||
|
|
||||||
# homeassistant.components.wled
|
# homeassistant.components.wled
|
||||||
wled==0.6.0
|
wled==0.7.0
|
||||||
|
|
||||||
# homeassistant.components.wolflink
|
# homeassistant.components.wolflink
|
||||||
wolf_smartset==0.1.11
|
wolf_smartset==0.1.11
|
||||||
|
Loading…
x
Reference in New Issue
Block a user