mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Ensure bond light follows proper typing (#47641)
This commit is contained in:
parent
215ab5fd40
commit
665e2c3473
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user