Rename the binary sensor to better reflect its purpose (#77711)

pull/77713/head
Avi Miller 2022-09-02 22:13:03 +10:00 committed by GitHub
parent 1bc8770b51
commit 1acb9a981a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -33,15 +33,15 @@ async def async_setup_entry(
if lifx_features(coordinator.device)["hev"]:
async_add_entities(
[
LIFXBinarySensorEntity(
LIFXHevCycleBinarySensorEntity(
coordinator=coordinator, description=HEV_CYCLE_STATE_SENSOR
)
]
)
class LIFXBinarySensorEntity(LIFXEntity, BinarySensorEntity):
"""LIFX sensor entity base class."""
class LIFXHevCycleBinarySensorEntity(LIFXEntity, BinarySensorEntity):
"""LIFX HEV cycle state binary sensor."""
_attr_has_entity_name = True