Rename Light to LightEntity (#34593)
This commit is contained in:
1 parent
8402363568
commit
e4333a7a44
93 files changed
+248
-191
No files matched your search
@@ -5,7 +5,7 @@ from typing import Callable, Optional, Sequence, cast
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import switch
|
||||
from homeassistant.components.light import PLATFORM_SCHEMA, Light
|
||||
from homeassistant.components.light import PLATFORM_SCHEMA, LightEntity
|
||||
from homeassistant.const import (
|
||||
ATTR_ENTITY_ID,
|
||||
CONF_ENTITY_ID,
|
||||
@@ -49,7 +49,7 @@ async def async_setup_platform(
|
||||
)
|
||||
|
||||
|
||||
class LightSwitch(Light):
|
||||
class LightSwitch(LightEntity):
|
||||
"""Represents a Switch as a Light."""
|
||||
|
||||
def __init__(self, name: str, switch_entity_id: str) -> None:
|
||||
|
||||
Reference in new issue
Block a user