1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Remove deprecated base entity classes (#61006)

* Remove deprecated base entity classes

* Clean up tests
This commit is contained in:
Franck Nijhof
2021-12-05 13:53:52 +01:00
committed by GitHub
parent 21c09d1a3e
commit cf371ea8dd
22 changed files with 2 additions and 279 deletions

View File

@@ -898,16 +898,6 @@ async def test_light_brightness_pct_conversion(hass, enable_custom_integrations)
assert data["brightness"] == 255
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
async def test_profiles(hass):
"""Test profiles loading."""
profiles = orig_Profiles(hass)