mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 20:23:58 +01:00
Rename Light to LightEntity (#34593)
This commit is contained in:
@@ -3,7 +3,7 @@ Provide a mock light platform.
|
||||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.components.light import Light
|
||||
from homeassistant.components.light import LightEntity
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
|
||||
from tests.common import MockToggleEntity
|
||||
@@ -33,7 +33,7 @@ async def async_setup_platform(
|
||||
async_add_entities_callback(ENTITIES)
|
||||
|
||||
|
||||
class MockLight(MockToggleEntity, Light):
|
||||
class MockLight(MockToggleEntity, LightEntity):
|
||||
"""Mock light class."""
|
||||
|
||||
brightness = None
|
||||
|
||||
Reference in New Issue
Block a user