mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
parent
cd0037a780
commit
0d1506c3cf
@ -7,7 +7,7 @@ import logging
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from aiohttp import ClientError
|
from aiohttp import ClientError
|
||||||
from packaging import version
|
from awesomeversion import AwesomeVersion
|
||||||
from ttls.client import Twinkly
|
from ttls.client import Twinkly
|
||||||
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
@ -173,7 +173,7 @@ class TwinklyLight(LightEntity):
|
|||||||
if ATTR_VERSION in software_version:
|
if ATTR_VERSION in software_version:
|
||||||
self._software_version = software_version[ATTR_VERSION]
|
self._software_version = software_version[ATTR_VERSION]
|
||||||
|
|
||||||
if version.parse(self._software_version) < version.parse(
|
if AwesomeVersion(self._software_version) < AwesomeVersion(
|
||||||
MIN_EFFECT_VERSION
|
MIN_EFFECT_VERSION
|
||||||
):
|
):
|
||||||
self._attr_supported_features = (
|
self._attr_supported_features = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user