Rename SwitchDevice to SwitchEntity (#34673)
This commit is contained in:
1 parent
e4333a7a44
commit
066e921a8b
121 files changed
+273
-251
No files matched your search
@@ -7,7 +7,7 @@ import voluptuous as vol
|
||||
from homeassistant.components.switch import (
|
||||
ENTITY_ID_FORMAT,
|
||||
PLATFORM_SCHEMA,
|
||||
SwitchDevice,
|
||||
SwitchEntity,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
CONF_COMMAND_OFF,
|
||||
@@ -66,7 +66,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
add_entities(switches)
|
||||
|
||||
|
||||
class CommandSwitch(SwitchDevice):
|
||||
class CommandSwitch(SwitchEntity):
|
||||
"""Representation a switch that can be toggled using shell commands."""
|
||||
|
||||
def __init__(
|
||||
|
||||
Reference in new issue
Block a user