Rename SwitchDevice to SwitchEntity (#34673)
This commit is contained in:
1 parent
e4333a7a44
commit
066e921a8b
121 files changed
+273
-251
No files matched your search
@@ -1,7 +1,7 @@
|
||||
"""Support for Zigbee switches."""
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.switch import SwitchDevice
|
||||
from homeassistant.components.switch import SwitchEntity
|
||||
|
||||
from . import DOMAIN, PLATFORM_SCHEMA, ZigBeeDigitalOut, ZigBeeDigitalOutConfig
|
||||
|
||||
@@ -20,5 +20,5 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
add_entities([ZigBeeSwitch(ZigBeeDigitalOutConfig(config), zigbee_device)])
|
||||
|
||||
|
||||
class ZigBeeSwitch(ZigBeeDigitalOut, SwitchDevice):
|
||||
class ZigBeeSwitch(ZigBeeDigitalOut, SwitchEntity):
|
||||
"""Representation of a Zigbee Digital Out device."""
|
||||
Reference in new issue
Block a user