Fix incorrect usage of ToggleEntity in switch platforms (#64620)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
parent
604a900658
commit
4c83ecd7bd
21 changed files with 44 additions and 51 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue