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 socket
import voluptuous as vol
from homeassistant import util
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT
import homeassistant.helpers.config_validation as cv
@@ -137,7 +137,7 @@ class PAServer:
return -1
class PALoopbackSwitch(SwitchDevice):
class PALoopbackSwitch(SwitchEntity):
"""Representation the presence or absence of a PA loopback module."""
def __init__(self, hass, name, pa_server, sink_name, source_name):