Update remote_rpi_gpio switch parent (#37136)

* Update switch.py

Update to rename SwitchDevice to SwitchEntity, if appropriate.

* Update switch.py

* Update switch.py
pull/35411/head
Kdemontf 2020-06-26 12:29:38 -04:00 committed by GitHub
parent 3a2d4ac7fa
commit 39a5f68914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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."""