Rename SwitchDevice to SwitchEntity (#34673)
This commit is contained in:
parent
e4333a7a44
commit
066e921a8b
121 changed files with 273 additions and 251 deletions
|
@ -4,7 +4,7 @@ import logging
|
|||
from orvibo.s20 import S20, S20Exception, discover
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
|
||||
from homeassistant.const import (
|
||||
CONF_DISCOVERY,
|
||||
CONF_HOST,
|
||||
|
@ -62,7 +62,7 @@ def setup_platform(hass, config, add_entities_callback, discovery_info=None):
|
|||
add_entities_callback(switches)
|
||||
|
||||
|
||||
class S20Switch(SwitchDevice):
|
||||
class S20Switch(SwitchEntity):
|
||||
"""Representation of an S20 switch."""
|
||||
|
||||
def __init__(self, name, s20):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue