Skip to content

Commit

Permalink
Use python-broadlink 0.4.0, support new devices
Browse files Browse the repository at this point in the history
In addition, drop the modified version of the discovery code since the
capability to specify a destination IP address was added to upstream.
  • Loading branch information
lbschenkel committed May 8, 2020
1 parent 0f8a4a1 commit b2112de
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 96 deletions.
3 changes: 1 addition & 2 deletions broadlink_bridge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import broadlink
import logging
import pkg_resources
from .discovery import discover
from .util import *

NAME = 'broadlink-bridge'
Expand Down Expand Up @@ -105,7 +104,7 @@ def connect(self):
else:
connected = False
try:
self._dev = discover(self.host)
self._dev = broadlink.discover(discover_ip_address=self.host)
if self._dev:
connected = self._dev.auth()
except (socket.gaierror, socket.timeout):
Expand Down
93 changes: 0 additions & 93 deletions broadlink_bridge/discovery.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
},
install_requires=[
'broadlink==0.11.1',
'broadlink==0.14.0',
'cryptography>=2.6',
'paho-mqtt>=1.4.0',
],
Expand Down

0 comments on commit b2112de

Please sign in to comment.