Skip to content

Commit

Permalink
fix issue with sending commands
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveicedgreentea committed Mar 15, 2023
1 parent 99712ba commit 2fca2d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/madvr/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)

0 comments on commit 2fca2d0

Please sign in to comment.