Revert "Support learning different command types with remote" (#40486)

This reverts commit c6a48d3b61.
This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-09-23 12:39:27 +02:00
1 parent c2d20c548f
commit 7c61caf68e
4 files changed
-11

No files matched your search

-5
View File
@@ -7,7 +7,6 @@ from homeassistant.components.remote import (
ATTR_ACTIVITY,
ATTR_ALTERNATIVE,
ATTR_COMMAND,
ATTR_COMMAND_TYPE,
ATTR_DELAY_SECS,
ATTR_DEVICE,
ATTR_NUM_REPEATS,
@@ -82,7 +81,6 @@ def learn_command(
device=None,
command=None,
alternative=None,
command_type=None,
timeout=None,
):
"""Learn a command from a device."""
@@ -96,9 +94,6 @@ def learn_command(
if command:
data[ATTR_COMMAND] = command
if command_type:
data[ATTR_COMMAND_TYPE] = command_type
if alternative:
data[ATTR_ALTERNATIVE] = alternative
-1
View File
@@ -101,7 +101,6 @@ class TestRemote(unittest.TestCase):
entity_id="entity_id_val",
device="test_device",
command=["test_command"],
command_type="rf",
alternative=True,
timeout=20,
)