lghorizon 0.6.5__tar.gz → 0.6.6__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.
Files changed (28) hide show
  1. {lghorizon-0.6.5 → lghorizon-0.6.6}/PKG-INFO +1 -1
  2. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon/models.py +1 -3
  3. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon.egg-info/PKG-INFO +1 -1
  4. {lghorizon-0.6.5 → lghorizon-0.6.6}/test.py +6 -2
  5. {lghorizon-0.6.5 → lghorizon-0.6.6}/.coverage +0 -0
  6. {lghorizon-0.6.5 → lghorizon-0.6.6}/.flake8 +0 -0
  7. {lghorizon-0.6.5 → lghorizon-0.6.6}/.github/workflows/build-on-pr.yml +0 -0
  8. {lghorizon-0.6.5 → lghorizon-0.6.6}/.github/workflows/publish-to-pypi.yml +0 -0
  9. {lghorizon-0.6.5 → lghorizon-0.6.6}/.gitignore +0 -0
  10. {lghorizon-0.6.5 → lghorizon-0.6.6}/LICENSE +0 -0
  11. {lghorizon-0.6.5 → lghorizon-0.6.6}/README.md +0 -0
  12. {lghorizon-0.6.5 → lghorizon-0.6.6}/instructions.txt +0 -0
  13. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon/__init__.py +0 -0
  14. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon/const.py +0 -0
  15. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon/exceptions.py +0 -0
  16. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon/helpers.py +0 -0
  17. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon/lghorizon_api.py +0 -0
  18. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon/py.typed +0 -0
  19. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon.egg-info/SOURCES.txt +0 -0
  20. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon.egg-info/dependency_links.txt +0 -0
  21. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon.egg-info/not-zip-safe +0 -0
  22. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon.egg-info/requires.txt +0 -0
  23. {lghorizon-0.6.5 → lghorizon-0.6.6}/lghorizon.egg-info/top_level.txt +0 -0
  24. {lghorizon-0.6.5 → lghorizon-0.6.6}/lib64 +0 -0
  25. {lghorizon-0.6.5 → lghorizon-0.6.6}/pyvenv.cfg +0 -0
  26. {lghorizon-0.6.5 → lghorizon-0.6.6}/secrets_stub.json +0 -0
  27. {lghorizon-0.6.5 → lghorizon-0.6.6}/setup.cfg +0 -0
  28. {lghorizon-0.6.5 → lghorizon-0.6.6}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lghorizon
3
- Version: 0.6.5
3
+ Version: 0.6.6
4
4
  Summary: Python client for Liberty Global Horizon settop boxes
5
5
  Home-page: https://github.com/sholofly/LGHorizon-python
6
6
  Author: Rudolf Offereins
@@ -332,9 +332,7 @@ class LGHorizonMqttClient:
332
332
  self._auth = auth
333
333
  self._brokerUrl = mqtt_broker_url.replace("wss://", "").replace(":443/mqtt", "")
334
334
  self.clientId = make_id()
335
- self._mqtt_client = mqtt.Client(
336
- self.clientId, transport="websockets", protocol=mqtt.MQTTv5
337
- )
335
+ self._mqtt_client = mqtt.Client(self.clientId, transport="websockets")
338
336
  self._mqtt_client.username_pw_set(self._auth.householdId, self._auth.mqttToken)
339
337
  self._mqtt_client.tls_set()
340
338
  self._mqtt_client.enable_logger(_logger)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lghorizon
3
- Version: 0.6.5
3
+ Version: 0.6.6
4
4
  Summary: Python client for Liberty Global Horizon settop boxes
5
5
  Home-page: https://github.com/sholofly/LGHorizon-python
6
6
  Author: Rudolf Offereins
@@ -6,7 +6,7 @@ from lghorizon import LGHorizonApi, LGHorizonBox
6
6
  api: LGHorizonApi
7
7
 
8
8
  logging.basicConfig(
9
- level=logging.DEBUG,
9
+ level=logging.INFO,
10
10
  format="%(asctime)s - %(levelname)s - %(message)s",
11
11
  )
12
12
 
@@ -37,7 +37,11 @@ def read_secrets(file_path):
37
37
  def event_loop():
38
38
  while True:
39
39
  time.sleep(1) # Simulate some work
40
-
40
+ box: LGHorizonBox
41
+ for box in api.settop_boxes.values():
42
+ if not box.playing_info:
43
+ continue
44
+ _Logger.info(box.playing_info.image)
41
45
  # Check for a breaking condition
42
46
  if break_condition():
43
47
  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