Rename RemoteDevice to RemoteEntity (#34676)

This commit is contained in:
Erik Montnemery 2020-04-26 02:12:36 +02:00 committed by GitHub
parent d3ed80cf53
commit aa60d362fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 36 additions and 14 deletions

View file

@ -117,3 +117,13 @@ class TestRemote(unittest.TestCase):
assert call.domain == remote.DOMAIN
assert call.service == SERVICE_LEARN_COMMAND
assert call.data[ATTR_ENTITY_ID] == "entity_id_val"
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