Skip to content

Commit cda2da6

Browse files
authored
Migrate rpi_gpio_pwm to extend LightEntity instead of Light (#36028)
1 parent 04cfd36 commit cda2da6

File tree

1 file changed

+2
-2
lines changed
  • homeassistant/components/rpi_gpio_pwm

1 file changed

+2
-2
lines changed

homeassistant/components/rpi_gpio_pwm/light.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
SUPPORT_BRIGHTNESS,
1818
SUPPORT_COLOR,
1919
SUPPORT_TRANSITION,
20-
Light,
20+
LightEntity,
2121
)
2222
from homeassistant.const import CONF_ADDRESS, CONF_HOST, CONF_NAME, CONF_TYPE, STATE_ON
2323
import homeassistant.helpers.config_validation as cv
@@ -104,7 +104,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
104104
add_entities(leds)
105105

106106

107-
class PwmSimpleLed(Light, RestoreEntity):
107+
class PwmSimpleLed(LightEntity, RestoreEntity):
108108
"""Representation of a simple one-color PWM LED."""
109109

110110
def __init__(self, led, name):

0 commit comments

Comments
 (0)