Rename SwitchDevice to SwitchEntity (#34673)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-26 18:50:37 +02:00
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__(