Skip to content

Commit

Permalink
Fix: Warning about unsupported color modes
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajNyiri committed Jul 4, 2024
1 parent a0d25e5 commit b58083d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/lights_app/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from homeassistant.components.light import LightEntity
from homeassistant.components.switch import SwitchEntity
from homeassistant.components.number import NumberEntity
from homeassistant.components.light import ColorMode
from .const import DOMAIN


Expand All @@ -20,6 +21,9 @@ def __init__(self, hass, config_entry: dict, entryData: dict, name_suffix: str):
self._enabled = False
self._name = "Lights App"
self._name_suffix = name_suffix

self._attr_color_mode = ColorMode.ONOFF
self._attr_supported_color_modes = set([ColorMode.ONOFF])
Entity.__init__(self)

@property
Expand Down

0 comments on commit b58083d

Please sign in to comment.