mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Rename Light to LightEntity (#34593)
This commit is contained in:
@@ -548,3 +548,13 @@ async def test_light_brightness_pct_conversion(hass):
|
||||
|
||||
_, data = entity.last_call("turn_on")
|
||||
assert data["brightness"] == 255, data
|
||||
|
||||
|
||||
def test_deprecated_base_class(caplog):
|
||||
"""Test deprecated base class."""
|
||||
|
||||
class CustomLight(light.Light):
|
||||
pass
|
||||
|
||||
CustomLight()
|
||||
assert "Light is deprecated, modify CustomLight" in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user