compit-inext-api-beta 0.2.0__py3-none-any.whl → 0.2.1__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.

Potentially problematic release.


This version of compit-inext-api-beta might be problematic. Click here for more details.

@@ -28,10 +28,10 @@ class CompitApiConnector:
28
28
  for gates in self.systemInfo.gates:
29
29
  for device in gates.devices:
30
30
  try:
31
- self.devices[device.type] = DeviceInstance(await DeviceDefinitionsLoader.get_device_definition(device.type, lang))
31
+ self.devices[device.id] = DeviceInstance(await DeviceDefinitionsLoader.get_device_definition(device.type, lang))
32
32
  state = await self.api.get_state(device.id)
33
33
  if state and isinstance(state, DeviceState):
34
- self.devices[device.type].state = state
34
+ self.devices[device.id].state = state
35
35
  else:
36
36
  _LOGGER.error("Failed to get state for device %s", device.id)
37
37
  except ValueError:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compit-inext-api-beta
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Compit Inext API - Python client
5
5
  Author: Przemyslaw Grzywa
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  compit_inext_api/__init__.py,sha256=ALTGjT6Elw1Hvyfrpe-uXGeoXqcYo4nPZ4C8XxZ6CKY,896
2
2
  compit_inext_api/api.py,sha256=uskM2GhG1j2IDbsHidE9-bntdNr8O0KQ8wE9Vk1iyxQ,7348
3
- compit_inext_api/connector.py,sha256=GtsSGDkSQ8BzGoeE05MeM8ceYT6ZpV8DqHKheEfjijQ,2713
3
+ compit_inext_api/connector.py,sha256=jBiN2tgmbNOHq8aG82j8IZ_8jKAvo7TD89j4gToGopI,2709
4
4
  compit_inext_api/consts.py,sha256=kKn-nPvqLG0RhX2kkNgCbqZRTOfh2JNGxkfhaaddve4,739
5
5
  compit_inext_api/device_definitions.py,sha256=kuUjgYeZe2C7FVwEk9WsSAAxHS2NgKgdU6FvTX65mSs,1835
6
6
  compit_inext_api/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -10,8 +10,8 @@ compit_inext_api/definitions/devices_pl.json,sha256=cB1SgwuuUco7Pyg7qDhDNOl2sWmb
10
10
  compit_inext_api/types/DeviceDefinitions.py,sha256=A_RtG2sf_MhzHnZvo-Sb5PvfKuWtQf1FBwHORlZa_jc,3448
11
11
  compit_inext_api/types/DeviceState.py,sha256=mdwsSTh6gDytUulhGMwLahak16rCh-EzgQ0qGr_w8GI,3673
12
12
  compit_inext_api/types/SystemInfo.py,sha256=7E0-2VPchxM8ilTu8NhM_FfaQ1ZZLgsN8ArjBxCXQOs,1516
13
- compit_inext_api_beta-0.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- compit_inext_api_beta-0.2.0.dist-info/METADATA,sha256=f4doPBWSI2MeJ6NLfu4pJReY0XmshkEZZy0j0atAL00,895
15
- compit_inext_api_beta-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- compit_inext_api_beta-0.2.0.dist-info/top_level.txt,sha256=YJzk9Rm_IOPoH_74n6CWw-wgCEGCiq5vu-cpvJuhxy0,17
17
- compit_inext_api_beta-0.2.0.dist-info/RECORD,,
13
+ compit_inext_api_beta-0.2.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ compit_inext_api_beta-0.2.1.dist-info/METADATA,sha256=IeminD6cKZBoEdN5gWaX3EyqskPn9Ab3i4jHMjQCzpg,895
15
+ compit_inext_api_beta-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ compit_inext_api_beta-0.2.1.dist-info/top_level.txt,sha256=YJzk9Rm_IOPoH_74n6CWw-wgCEGCiq5vu-cpvJuhxy0,17
17
+ compit_inext_api_beta-0.2.1.dist-info/RECORD,,