From 2fca2d0fff5aba2184f994a8ee899b9e28d3e8f3 Mon Sep 17 00:00:00 2001 From: iloveicedgreentea <31193909+iloveicedgreentea@users.noreply.github.com> Date: Wed, 15 Mar 2023 15:27:02 -0400 Subject: [PATCH] fix issue with sending commands --- custom_components/madvr/remote.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/madvr/remote.py b/custom_components/madvr/remote.py index 03e7be0..ed80147 100644 --- a/custom_components/madvr/remote.py +++ b/custom_components/madvr/remote.py @@ -173,7 +173,7 @@ def is_on(self): """Return the last known state.""" return self._state - def turn_off(self, standby=False): + def turn_off(self, standby=False, **kwargs): """ Send the power off command. Will tell envy to shut off and close the socket too @@ -187,7 +187,7 @@ def turn_off(self, standby=False): self.madvr_client.close_connection() self._state = False - def turn_on(self): + def turn_on(self, **kwargs): """ Send the power on command but not really. You must call this for it to connect but turn it on with IR/RF FIRST @@ -196,7 +196,7 @@ def turn_on(self): self.madvr_client.open_connection() self._state = True - def send_command(self, command: str): + def send_command(self, command: str, **kwargs): """Send commands to a device.""" self.madvr_client.send_command(command)