Rename SwitchDevice to SwitchEntity (#34673)
This commit is contained in:
parent
e4333a7a44
commit
066e921a8b
121 changed files with 273 additions and 251 deletions
|
@ -2,7 +2,7 @@
|
|||
import datetime
|
||||
import logging
|
||||
|
||||
from homeassistant.components.switch import SwitchDevice
|
||||
from homeassistant.components.switch import SwitchEntity
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from .const import DOMAIN, DOOR_STATION, DOOR_STATION_INFO
|
||||
|
@ -31,7 +31,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
async_add_entities(entities)
|
||||
|
||||
|
||||
class DoorBirdSwitch(DoorBirdEntity, SwitchDevice):
|
||||
class DoorBirdSwitch(DoorBirdEntity, SwitchEntity):
|
||||
"""A relay in a DoorBird device."""
|
||||
|
||||
def __init__(self, doorstation, doorstation_info, relay):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue