Rename SwitchDevice to SwitchEntity (#34673)

This commit is contained in:
Erik Montnemery 2020-04-26 18:50:37 +02:00 committed by GitHub
parent e4333a7a44
commit 066e921a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
121 changed files with 273 additions and 251 deletions

View file

@ -12,7 +12,7 @@ from aioswitcher.consts import (
WAITING_TEXT,
)
from homeassistant.components.switch import ATTR_CURRENT_POWER_W, SwitchDevice
from homeassistant.components.switch import ATTR_CURRENT_POWER_W, SwitchEntity
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.typing import HomeAssistantType
@ -53,7 +53,7 @@ async def async_setup_platform(
async_add_entities([SwitcherControl(hass.data[DOMAIN][DATA_DEVICE])])
class SwitcherControl(SwitchDevice):
class SwitcherControl(SwitchEntity):
"""Home Assistant switch entity."""
def __init__(self, device_data: "SwitcherV2Device") -> None: