Rename SwitchDevice to SwitchEntity (#34673)
This commit is contained in:
parent
e4333a7a44
commit
066e921a8b
121 changed files with 273 additions and 251 deletions
|
@ -3,7 +3,7 @@ import logging
|
|||
|
||||
from pydanfossair.commands import ReadCommand, UpdateCommand
|
||||
|
||||
from homeassistant.components.switch import SwitchDevice
|
||||
from homeassistant.components.switch import SwitchEntity
|
||||
|
||||
from . import DOMAIN as DANFOSS_AIR_DOMAIN
|
||||
|
||||
|
@ -43,7 +43,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
add_entities(dev)
|
||||
|
||||
|
||||
class DanfossAir(SwitchDevice):
|
||||
class DanfossAir(SwitchEntity):
|
||||
"""Representation of a Danfoss Air HRV Switch."""
|
||||
|
||||
def __init__(self, data, name, state_command, on_command, off_command):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue