mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Rename the binary sensor to better reflect its purpose (#77711)
This commit is contained in:
parent
1bc8770b51
commit
1acb9a981a
@ -33,15 +33,15 @@ async def async_setup_entry(
|
|||||||
if lifx_features(coordinator.device)["hev"]:
|
if lifx_features(coordinator.device)["hev"]:
|
||||||
async_add_entities(
|
async_add_entities(
|
||||||
[
|
[
|
||||||
LIFXBinarySensorEntity(
|
LIFXHevCycleBinarySensorEntity(
|
||||||
coordinator=coordinator, description=HEV_CYCLE_STATE_SENSOR
|
coordinator=coordinator, description=HEV_CYCLE_STATE_SENSOR
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class LIFXBinarySensorEntity(LIFXEntity, BinarySensorEntity):
|
class LIFXHevCycleBinarySensorEntity(LIFXEntity, BinarySensorEntity):
|
||||||
"""LIFX sensor entity base class."""
|
"""LIFX HEV cycle state binary sensor."""
|
||||||
|
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user