Rename RemoteDevice to RemoteEntity (#34676)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-26 02:12:36 +02:00
1 parent d3ed80cf53
commit aa60d362fd
10 files changed
+36 -14

No files matched your search

+10
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