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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)