Skip to content

Commit

Permalink
⚠️ fix deprecated warnings (#2190)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Feb 14, 2025
1 parent 4713848 commit 6c851da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/xiaomi_miot/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
LightEntityFeature, # v2022.5
ColorMode,
ATTR_BRIGHTNESS,
ATTR_COLOR_TEMP,
ATTR_COLOR_TEMP_KELVIN,
ATTR_RGB_COLOR,
ATTR_HS_COLOR,
Expand All @@ -33,7 +32,6 @@
from .core.miot_spec import (
MiotSpec,
MiotService,
MiotProperty,
)
from miio.utils import (
rgb_to_int,
Expand All @@ -44,6 +42,7 @@
DATA_KEY = f'{ENTITY_DOMAIN}.{DOMAIN}'

SERVICE_TO_METHOD = {}
ATTR_COLOR_TEMP = 'color_temp'


async def async_setup_entry(hass, config_entry, async_add_entities):
Expand Down

0 comments on commit 6c851da

Please sign in to comment.