Rename SwitchDevice to SwitchEntity (#34673)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-26 18:50:37 +02:00
1 parent e4333a7a44
commit 066e921a8b
121 files changed
+273 -251

No files matched your search

@@ -7,7 +7,7 @@ from aiohomekit.model.characteristics import (
IsConfiguredValues,
)
from homeassistant.components.switch import SwitchDevice
from homeassistant.components.switch import SwitchEntity
from homeassistant.core import callback
from . import KNOWN_DEVICES, HomeKitEntity
@@ -21,7 +21,7 @@ ATTR_IS_CONFIGURED = "is_configured"
ATTR_REMAINING_DURATION = "remaining_duration"
class HomeKitSwitch(HomeKitEntity, SwitchDevice):
class HomeKitSwitch(HomeKitEntity, SwitchEntity):
"""Representation of a Homekit switch."""
def get_characteristic_types(self):
@@ -49,7 +49,7 @@ class HomeKitSwitch(HomeKitEntity, SwitchDevice):
return {OUTLET_IN_USE: outlet_in_use}
class HomeKitValve(HomeKitEntity, SwitchDevice):
class HomeKitValve(HomeKitEntity, SwitchEntity):
"""Represents a valve in an irrigation system."""
def get_characteristic_types(self):