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

@ -139,13 +139,3 @@ async def test_delete_command(hass):
assert call.domain == remote.DOMAIN
assert call.service == SERVICE_DELETE_COMMAND
assert call.data[ATTR_ENTITY_ID] == ENTITY_ID
async def test_deprecated_base_class(caplog):
"""Test deprecated base class."""
class CustomRemote(remote.RemoteDevice):
pass
CustomRemote()
assert "RemoteDevice is deprecated, modify CustomRemote" in caplog.text