mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Migrate netatmo light to color_mode (#70912)
This commit is contained in:
parent
361119d5c1
commit
c6d8fffeb4
@ -6,7 +6,7 @@ from typing import Any, cast
|
|||||||
|
|
||||||
import pyatmo
|
import pyatmo
|
||||||
|
|
||||||
from homeassistant.components.light import LightEntity
|
from homeassistant.components.light import ColorMode, LightEntity
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.exceptions import PlatformNotReady
|
from homeassistant.exceptions import PlatformNotReady
|
||||||
@ -62,6 +62,9 @@ async def async_setup_entry(
|
|||||||
class NetatmoLight(NetatmoBase, LightEntity):
|
class NetatmoLight(NetatmoBase, LightEntity):
|
||||||
"""Representation of a Netatmo Presence camera light."""
|
"""Representation of a Netatmo Presence camera light."""
|
||||||
|
|
||||||
|
_attr_color_mode = ColorMode.ONOFF
|
||||||
|
_attr_supported_color_modes = {ColorMode.ONOFF}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
data_handler: NetatmoDataHandler,
|
data_handler: NetatmoDataHandler,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user