From cda2da62cfece023c7121e7d86b8ae80ea672a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Oldag?= Date: Sat, 23 May 2020 14:09:59 +0200 Subject: [PATCH] Migrate rpi_gpio_pwm to extend LightEntity instead of Light (#36028) --- homeassistant/components/rpi_gpio_pwm/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rpi_gpio_pwm/light.py b/homeassistant/components/rpi_gpio_pwm/light.py index 96ac3c6f2ed..f86d1f27832 100644 --- a/homeassistant/components/rpi_gpio_pwm/light.py +++ b/homeassistant/components/rpi_gpio_pwm/light.py @@ -17,7 +17,7 @@ from homeassistant.components.light import ( SUPPORT_BRIGHTNESS, SUPPORT_COLOR, SUPPORT_TRANSITION, - Light, + LightEntity, ) from homeassistant.const import CONF_ADDRESS, CONF_HOST, CONF_NAME, CONF_TYPE, STATE_ON import homeassistant.helpers.config_validation as cv @@ -104,7 +104,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None): add_entities(leds) -class PwmSimpleLed(Light, RestoreEntity): +class PwmSimpleLed(LightEntity, RestoreEntity): """Representation of a simple one-color PWM LED.""" def __init__(self, led, name):