Skip to content

Commit

Permalink
refactor(entities): remove onoff from light
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Apr 10, 2024
1 parent fa125f3 commit 4ce3b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nexa_bridge_x/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, node: NexaNode, coordinator: CoordinatorEntity) -> None:
class NexaDimmerEntity(NexaNodeEntity, LightEntity):
"""Entity for light"""
_attr_color_mode = ColorMode.BRIGHTNESS
_attr_supported_color_modes = {ColorMode.ONOFF, ColorMode.BRIGHTNESS}
_attr_supported_color_modes = {ColorMode.BRIGHTNESS}

def __init__(self, coordinator: DataUpdateCoordinator, node: NexaNode):
_LOGGER.info("Found light %s: %s", node.id, node.name)
Expand Down

0 comments on commit 4ce3b91

Please sign in to comment.