Update remote_rpi_gpio switch parent (#37136)
* Update switch.py Update to rename SwitchDevice to SwitchEntity, if appropriate. * Update switch.py * Update switch.pypull/35411/head
parent
3a2d4ac7fa
commit
39a5f68914
|
@ -3,7 +3,7 @@ import logging
|
|||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity
|
||||
from homeassistant.const import CONF_HOST, DEVICE_DEFAULT_NAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
|
@ -43,8 +43,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
add_entities(devices)
|
||||
|
||||
|
||||
class RemoteRPiGPIOSwitch(SwitchDevice):
|
||||
"""Representation of a Remtoe Raspberry Pi GPIO."""
|
||||
class RemoteRPiGPIOSwitch(SwitchEntity):
|
||||
"""Representation of a Remote Raspberry Pi GPIO."""
|
||||
|
||||
def __init__(self, name, led):
|
||||
"""Initialize the pin."""
|
||||
|
|
Loading…
Reference in New Issue