mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-15 08:14:04 +02:00
Update SwitchDevice to SwitchEntity
This commit is contained in:
parent
4909fdbdd5
commit
eaa5c0e3dd
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ from homeassistant.helpers.restore_state import RestoreEntity
|
|||
from homeassistant.components.light import (
|
||||
is_on, ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_RGB_COLOR, ATTR_TRANSITION,
|
||||
VALID_TRANSITION, ATTR_WHITE_VALUE, ATTR_XY_COLOR, DOMAIN as LIGHT_DOMAIN)
|
||||
from homeassistant.components.switch import SwitchDevice
|
||||
from homeassistant.components.switch import SwitchEntity
|
||||
from homeassistant.const import (
|
||||
ATTR_ENTITY_ID, CONF_NAME, CONF_PLATFORM, STATE_ON,
|
||||
SERVICE_TURN_ON)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue