Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Twinkly to awesomeversion #83205

Merged
merged 1 commit into from Dec 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/components/twinkly/light.py
Expand Up @@ -7,7 +7,7 @@
from typing import Any

from aiohttp import ClientError
from packaging import version
from awesomeversion import AwesomeVersion
from ttls.client import Twinkly

from homeassistant.components.light import (
Expand Down Expand Up @@ -173,7 +173,7 @@ async def async_added_to_hass(self) -> None:
if ATTR_VERSION in software_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
):
self._attr_supported_features = (
Expand Down