Use light enums in wiz (#70785)

This commit is contained in:
epenet 2022-04-26 14:33:02 +02:00 committed by GitHub
parent 56e0b8dbb5
commit 7ab0dc5177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,9 @@ from homeassistant.components.light import (
ATTR_EFFECT,
ATTR_RGBW_COLOR,
ATTR_RGBWW_COLOR,
SUPPORT_EFFECT,
ColorMode,
LightEntity,
LightEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
@ -91,7 +91,7 @@ class WizBulbEntity(WizToggleEntity, LightEntity):
self._attr_min_mireds = color_temperature_kelvin_to_mired(kelvin.max)
self._attr_max_mireds = color_temperature_kelvin_to_mired(kelvin.min)
if bulb_type.features.effect:
self._attr_supported_features = SUPPORT_EFFECT
self._attr_supported_features = LightEntityFeature.EFFECT
self._async_update_attrs()
@callback