diff --git a/homeassistant/components/upb/light.py b/homeassistant/components/upb/light.py index 2ba9f8ad8ad..13f680d9e5a 100644 --- a/homeassistant/components/upb/light.py +++ b/homeassistant/components/upb/light.py @@ -3,10 +3,9 @@ from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_FLASH, ATTR_TRANSITION, - SUPPORT_FLASH, - SUPPORT_TRANSITION, ColorMode, LightEntity, + LightEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant @@ -68,11 +67,11 @@ class UpbLight(UpbAttachedEntity, LightEntity): return {self.color_mode} @property - def supported_features(self): + def supported_features(self) -> int: """Flag supported features.""" if self._element.dimmable: - return SUPPORT_TRANSITION | SUPPORT_FLASH - return SUPPORT_FLASH + return LightEntityFeature.TRANSITION | LightEntityFeature.FLASH + return LightEntityFeature.FLASH @property def brightness(self):