Skip to content

Commit

Permalink
Fix entity category on binary sensors (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohNan authored Jan 2, 2024
1 parent 48ab6f3 commit 2d1ef08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/flichub/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def is_on(self):

class FlicHubButtonPassiveBinarySensor(FlicHubButtonEntity, BinarySensorEntity):
"""flichub sensor class."""
_attr_entity_category = EntityCategory.CONFIG
_attr_entity_category = EntityCategory.DIAGNOSTIC
_attr_name = "Passive Mode"

def __init__(self, coordinator, config_entry, button: FlicButton, flic_hub: FlicHubInfo):
Expand All @@ -152,7 +152,7 @@ def is_on(self):

class FlicHubButtonActiveDisconnectBinarySensor(FlicHubButtonEntity, BinarySensorEntity):
"""flichub sensor class."""
_attr_entity_category = EntityCategory.CONFIG
_attr_entity_category = EntityCategory.DIAGNOSTIC
_attr_name = "Active Disconnect"

def __init__(self, coordinator, config_entry, button: FlicButton, flic_hub: FlicHubInfo):
Expand Down

0 comments on commit 2d1ef08

Please sign in to comment.