From 665e2c34730d4c4c78bd742446542b41d6f99838 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 8 Mar 2021 21:53:44 +0100 Subject: [PATCH] Ensure bond light follows proper typing (#47641) --- homeassistant/components/bond/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/bond/light.py b/homeassistant/components/bond/light.py index d5f7cb29207..d2b06012ed3 100644 --- a/homeassistant/components/bond/light.py +++ b/homeassistant/components/bond/light.py @@ -95,7 +95,7 @@ class BondBaseLight(BondEntity, LightEntity): return self._light == 1 @property - def supported_features(self) -> Optional[int]: + def supported_features(self) -> int: """Flag supported features.""" return 0 @@ -119,7 +119,7 @@ class BondLight(BondBaseLight, BondEntity, LightEntity): self._brightness = state.get("brightness") @property - def supported_features(self) -> Optional[int]: + def supported_features(self) -> int: """Flag supported features.""" if self._device.supports_set_brightness(): return SUPPORT_BRIGHTNESS @@ -203,7 +203,7 @@ class BondFireplace(BondEntity, LightEntity): self._flame = state.get("flame") @property - def supported_features(self) -> Optional[int]: + def supported_features(self) -> int: """Flag brightness as supported feature to represent flame level.""" return SUPPORT_BRIGHTNESS