Skip to content

Commit

Permalink
Let wake on lan function decide broadcast address
Browse files Browse the repository at this point in the history
  • Loading branch information
Liborsaf committed Apr 8, 2024
1 parent 10adc74 commit 9a3d71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonyapilib/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def start_app(self, app_name):
self._send_http(url, HttpMethod.POST,
cookies=self._recreate_auth_cookie())

def power(self, power_on, broadcast='255.255.255.255'):
def power(self, power_on, broadcast=None):
"""Powers the device on or shuts it off."""
if power_on:
self.wakeonlan(broadcast)
Expand Down

0 comments on commit 9a3d71a

Please sign in to comment.