Rename RemoteDevice to RemoteEntity (#34676)
This commit is contained in:
parent
d3ed80cf53
commit
aa60d362fd
10 changed files with 36 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue