lghorizon 0.6.6__tar.gz → 0.6.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lghorizon-0.6.6 → lghorizon-0.6.7}/PKG-INFO +1 -1
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon/models.py +4 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon.egg-info/PKG-INFO +1 -1
- {lghorizon-0.6.6 → lghorizon-0.6.7}/test.py +2 -6
- {lghorizon-0.6.6 → lghorizon-0.6.7}/.coverage +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/.flake8 +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/.github/workflows/build-on-pr.yml +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/.github/workflows/publish-to-pypi.yml +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/.gitignore +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/LICENSE +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/README.md +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/instructions.txt +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon/__init__.py +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon/const.py +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon/exceptions.py +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon/helpers.py +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon/lghorizon_api.py +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon/py.typed +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon.egg-info/SOURCES.txt +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon.egg-info/dependency_links.txt +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon.egg-info/not-zip-safe +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon.egg-info/requires.txt +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lghorizon.egg-info/top_level.txt +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/lib64 +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/pyvenv.cfg +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/secrets_stub.json +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/setup.cfg +0 -0
- {lghorizon-0.6.6 → lghorizon-0.6.7}/setup.py +0 -0
|
@@ -333,6 +333,10 @@ class LGHorizonMqttClient:
|
|
|
333
333
|
self._brokerUrl = mqtt_broker_url.replace("wss://", "").replace(":443/mqtt", "")
|
|
334
334
|
self.clientId = make_id()
|
|
335
335
|
self._mqtt_client = mqtt.Client(self.clientId, transport="websockets")
|
|
336
|
+
|
|
337
|
+
self._mqtt_client.ws_set_options(
|
|
338
|
+
headers={"Sec-WebSocket-Protocol": "mqtt, mqttv3.1, mqttv3.11"}
|
|
339
|
+
)
|
|
336
340
|
self._mqtt_client.username_pw_set(self._auth.householdId, self._auth.mqttToken)
|
|
337
341
|
self._mqtt_client.tls_set()
|
|
338
342
|
self._mqtt_client.enable_logger(_logger)
|
|
@@ -6,7 +6,7 @@ from lghorizon import LGHorizonApi, LGHorizonBox
|
|
|
6
6
|
api: LGHorizonApi
|
|
7
7
|
|
|
8
8
|
logging.basicConfig(
|
|
9
|
-
level=logging.
|
|
9
|
+
level=logging.DEBUG,
|
|
10
10
|
format="%(asctime)s - %(levelname)s - %(message)s",
|
|
11
11
|
)
|
|
12
12
|
|
|
@@ -37,11 +37,7 @@ def read_secrets(file_path):
|
|
|
37
37
|
def event_loop():
|
|
38
38
|
while True:
|
|
39
39
|
time.sleep(1) # Simulate some work
|
|
40
|
-
|
|
41
|
-
for box in api.settop_boxes.values():
|
|
42
|
-
if not box.playing_info:
|
|
43
|
-
continue
|
|
44
|
-
_Logger.info(box.playing_info.image)
|
|
40
|
+
|
|
45
41
|
# Check for a breaking condition
|
|
46
42
|
if break_condition():
|
|
47
43
|
break
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|