lghorizon 0.8.4__py3-none-any.whl → 0.8.6__py3-none-any.whl

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/models.py CHANGED
@@ -360,7 +360,6 @@ class LGHorizonMqttClient:
360
360
  )
361
361
  self.client_id = make_id()
362
362
  self._mqtt_client = mqtt.Client(
363
- mqtt.CallbackAPIVersion.VERSION1, # disabled because of dependency issue
364
363
  client_id=self.client_id,
365
364
  transport="websockets",
366
365
  )
@@ -686,11 +685,14 @@ class LGHorizonBox:
686
685
 
687
686
  def send_key_to_box(self, key: str) -> None:
688
687
  """Send emulated (remote) key press to settopbox."""
689
- payload = (
690
- '{"type":"CPE.KeyEvent","status":{"w3cKey":"'
691
- + key
692
- + '","eventType":"keyDownUp"}}'
693
- )
688
+ payload_dict = {
689
+ "type": "CPE.KeyEvent",
690
+ "runtimeType": "key",
691
+ "id": "ha",
692
+ "source": self.device_id.lower(),
693
+ "status": {"w3cKey": key, "eventType": "keyDownUp"},
694
+ }
695
+ payload = json.dumps(payload_dict)
694
696
  self._mqtt_client.publish_message(
695
697
  f"{self._auth.household_id}/{self.device_id}", payload
696
698
  )
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: lghorizon
3
- Version: 0.8.4
3
+ Version: 0.8.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
@@ -31,6 +31,7 @@ Dynamic: description-content-type
31
31
  Dynamic: home-page
32
32
  Dynamic: keywords
33
33
  Dynamic: license
34
+ Dynamic: license-file
34
35
  Dynamic: requires-dist
35
36
  Dynamic: requires-python
36
37
  Dynamic: summary
@@ -3,10 +3,10 @@ lghorizon/const.py,sha256=j_rugTybx8n2kKEKaRWhgAFzBSEKztWTBFP7ABuMEgg,5013
3
3
  lghorizon/exceptions.py,sha256=-6v55KDTogBldGAg1wV9Mrxm5L5BsaVguhBgVMOeJHk,404
4
4
  lghorizon/helpers.py,sha256=W7ppV9MJ1MyXH_49GliNtiu_kA7h1KRzMdmRdrC5kaw,266
5
5
  lghorizon/lghorizon_api.py,sha256=PgQdW38yK30Lg45K4gvZEpYTK6NGGArhtu-gzuU_L-M,22279
6
- lghorizon/models.py,sha256=-BrRdrkQzMzx3gAdcECwfVcTVF-7hvoBSxKz1gjwuwc,26032
6
+ lghorizon/models.py,sha256=uAgERu1EjlnEl0e71ybw78ADyPx46GXFmNUFDb8ZkcY,26079
7
7
  lghorizon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- lghorizon-0.8.4.dist-info/LICENSE,sha256=6Dh2tur1gMX3r3rITjVwUONBEJxyyPZDY8p6DZXtimE,1059
9
- lghorizon-0.8.4.dist-info/METADATA,sha256=mSPhcTwsoEwytHf3griMgldv2zKZ_TBExVx0AjjPwqs,1260
10
- lghorizon-0.8.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
11
- lghorizon-0.8.4.dist-info/top_level.txt,sha256=usii76_AxGfPI6gjrrh-NyZxcQQuF1B8_Q9kd7sID8Q,10
12
- lghorizon-0.8.4.dist-info/RECORD,,
8
+ lghorizon-0.8.6.dist-info/licenses/LICENSE,sha256=6Dh2tur1gMX3r3rITjVwUONBEJxyyPZDY8p6DZXtimE,1059
9
+ lghorizon-0.8.6.dist-info/METADATA,sha256=EssnIVIntIwr-eTgHILlpLacb-iHoqOBjGt8eDWogSs,1282
10
+ lghorizon-0.8.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ lghorizon-0.8.6.dist-info/top_level.txt,sha256=usii76_AxGfPI6gjrrh-NyZxcQQuF1B8_Q9kd7sID8Q,10
12
+ lghorizon-0.8.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5