lghorizon 0.8.1__tar.gz → 0.8.3__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 (29) hide show
  1. {lghorizon-0.8.1 → lghorizon-0.8.3}/PKG-INFO +2 -2
  2. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon/const.py +9 -0
  3. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon/lghorizon_api.py +1 -3
  4. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon/models.py +1 -1
  5. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon.egg-info/PKG-INFO +2 -2
  6. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon.egg-info/requires.txt +1 -1
  7. {lghorizon-0.8.1 → lghorizon-0.8.3}/secrets_stub.json +2 -2
  8. {lghorizon-0.8.1 → lghorizon-0.8.3}/setup.py +1 -1
  9. {lghorizon-0.8.1 → lghorizon-0.8.3}/.coverage +0 -0
  10. {lghorizon-0.8.1 → lghorizon-0.8.3}/.flake8 +0 -0
  11. {lghorizon-0.8.1 → lghorizon-0.8.3}/.github/workflows/build-on-pr.yml +0 -0
  12. {lghorizon-0.8.1 → lghorizon-0.8.3}/.github/workflows/publish-to-pypi.yml +0 -0
  13. {lghorizon-0.8.1 → lghorizon-0.8.3}/.gitignore +0 -0
  14. {lghorizon-0.8.1 → lghorizon-0.8.3}/LICENSE +0 -0
  15. {lghorizon-0.8.1 → lghorizon-0.8.3}/README.md +0 -0
  16. {lghorizon-0.8.1 → lghorizon-0.8.3}/instructions.txt +0 -0
  17. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon/__init__.py +0 -0
  18. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon/exceptions.py +0 -0
  19. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon/helpers.py +0 -0
  20. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon/py.typed +0 -0
  21. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon.egg-info/SOURCES.txt +0 -0
  22. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon.egg-info/dependency_links.txt +0 -0
  23. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon.egg-info/not-zip-safe +0 -0
  24. {lghorizon-0.8.1 → lghorizon-0.8.3}/lghorizon.egg-info/top_level.txt +0 -0
  25. {lghorizon-0.8.1 → lghorizon-0.8.3}/lib64 +0 -0
  26. {lghorizon-0.8.1 → lghorizon-0.8.3}/pyvenv.cfg +0 -0
  27. {lghorizon-0.8.1 → lghorizon-0.8.3}/renovate.json +0 -0
  28. {lghorizon-0.8.1 → lghorizon-0.8.3}/setup.cfg +0 -0
  29. {lghorizon-0.8.1 → lghorizon-0.8.3}/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lghorizon
3
- Version: 0.8.1
3
+ Version: 0.8.3
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
@@ -20,7 +20,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
20
  Requires-Python: >=3.9
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: paho-mqtt>=2.0.0
23
+ Requires-Dist: paho-mqtt<2.0.0
24
24
  Requires-Dist: requests>=2.22.0
25
25
  Requires-Dist: backoff>=1.9.0
26
26
 
@@ -76,6 +76,15 @@ COUNTRY_SETTINGS = {
76
76
  "channels": [],
77
77
  "language": "de",
78
78
  },
79
+ "be-basetv": {
80
+ "api_url": "https://spark-prod-be.gnp.cloud.base.tv",
81
+ "channels": [],
82
+ "language": "nl",
83
+ "platform_types": {
84
+ "EOS": {"manufacturer": "Arris", "model": "DCX960"},
85
+ "HORIZON": {"manufacturer": "Arris", "model": "VIP5002W"},
86
+ },
87
+ },
79
88
  "be-nl": {
80
89
  "api_url": "https://spark-prod-be.gnp.cloud.telenet.tv",
81
90
  "oauth_username_fieldname": "j_username",
@@ -93,9 +93,7 @@ class LGHorizonApi:
93
93
 
94
94
  def _authorize(self) -> None:
95
95
  ctry_code = self._country_code[0:2]
96
- if ctry_code == "be":
97
- self._authorize_telenet()
98
- elif ctry_code in ("gb", "ch"):
96
+ if ctry_code in ("gb", "ch", "be"):
99
97
  self._authorize_with_refresh_token()
100
98
  else:
101
99
  self._authorize_default()
@@ -360,7 +360,7 @@ class LGHorizonMqttClient:
360
360
  )
361
361
  self.client_id = make_id()
362
362
  self._mqtt_client = mqtt.Client(
363
- mqtt.CallbackAPIVersion.VERSION1,
363
+ # mqtt.CallbackAPIVersion.VERSION1, #disabled because of dependency issue
364
364
  client_id=self.client_id,
365
365
  transport="websockets",
366
366
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lghorizon
3
- Version: 0.8.1
3
+ Version: 0.8.3
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
@@ -20,7 +20,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
20
  Requires-Python: >=3.9
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: paho-mqtt>=2.0.0
23
+ Requires-Dist: paho-mqtt<2.0.0
24
24
  Requires-Dist: requests>=2.22.0
25
25
  Requires-Dist: backoff>=1.9.0
26
26
 
@@ -1,3 +1,3 @@
1
- paho-mqtt>=2.0.0
1
+ paho-mqtt<2.0.0
2
2
  requests>=2.22.0
3
3
  backoff>=1.9.0
@@ -2,6 +2,6 @@
2
2
  "username": "your_username",
3
3
  "password": "your_password",
4
4
  "country": "your_country_code",
5
- "profile_id":"your_profile_id"
6
-
5
+ "profile_id": "your_profile_id",
6
+ "refresh_token": "your_refresh_token"
7
7
  }
@@ -27,7 +27,7 @@ setuptools.setup(
27
27
  url="https://github.com/sholofly/LGHorizon-python",
28
28
  packages=setuptools.find_packages(include=["lghorizon"]),
29
29
  license="MIT license",
30
- install_requires=["paho-mqtt>=2.0.0", "requests>=2.22.0", "backoff>=1.9.0"],
30
+ install_requires=["paho-mqtt<2.0.0", "requests>=2.22.0", "backoff>=1.9.0"],
31
31
  keywords=["LG", "Horizon", "API", "Settop box"],
32
32
  classifiers=[
33
33
  "Development Status :: 3 - Alpha",
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