From 39a5f6891427c9ada77340f143e051a31bcbf0e3 Mon Sep 17 00:00:00 2001 From: Kdemontf <49533626+Kdemontf@users.noreply.github.com> Date: Fri, 26 Jun 2020 12:29:38 -0400 Subject: [PATCH] Update remote_rpi_gpio switch parent (#37136) * Update switch.py Update to rename SwitchDevice to SwitchEntity, if appropriate. * Update switch.py * Update switch.py --- homeassistant/components/remote_rpi_gpio/switch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/remote_rpi_gpio/switch.py b/homeassistant/components/remote_rpi_gpio/switch.py index 42ce258ef98..48e072a5d6b 100644 --- a/homeassistant/components/remote_rpi_gpio/switch.py +++ b/homeassistant/components/remote_rpi_gpio/switch.py @@ -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."""