Fix incorrect usage of ToggleEntity in switch platforms (#64620)

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
Franck Nijhof 2022-01-21 13:17:45 +01:00 committed by GitHub
parent 604a900658
commit 4c83ecd7bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 44 additions and 51 deletions

View file

@ -1,8 +1,8 @@
"""Support for Tellstick switches."""
from __future__ import annotations
from homeassistant.components.switch import SwitchEntity
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import ToggleEntity
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
@ -39,7 +39,7 @@ def setup_platform(
)
class TellstickSwitch(TellstickDevice, ToggleEntity):
class TellstickSwitch(TellstickDevice, SwitchEntity):
"""Representation of a Tellstick switch."""
def _parse_ha_data(self, kwargs):