aioamazondevices 3.1.8__py3-none-any.whl → 3.1.10__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.
- aioamazondevices/__init__.py +1 -1
- aioamazondevices/api.py +7 -2
- aioamazondevices/const.py +1 -1
- {aioamazondevices-3.1.8.dist-info → aioamazondevices-3.1.10.dist-info}/METADATA +1 -1
- aioamazondevices-3.1.10.dist-info/RECORD +10 -0
- aioamazondevices-3.1.8.dist-info/RECORD +0 -10
- {aioamazondevices-3.1.8.dist-info → aioamazondevices-3.1.10.dist-info}/LICENSE +0 -0
- {aioamazondevices-3.1.8.dist-info → aioamazondevices-3.1.10.dist-info}/WHEEL +0 -0
aioamazondevices/__init__.py
CHANGED
aioamazondevices/api.py
CHANGED
@@ -529,7 +529,10 @@ class AmazonEchoApi:
|
|
529
529
|
location_details = network_detail["locationDetails"]["locationDetails"]
|
530
530
|
default_location = location_details["Default_Location"]
|
531
531
|
amazon_bridge = default_location["amazonBridgeDetails"]["amazonBridgeDetails"]
|
532
|
-
lambda_bridge = amazon_bridge
|
532
|
+
lambda_bridge = amazon_bridge.get("LambdaBridge_AAA/SonarCloudService")
|
533
|
+
if not lambda_bridge:
|
534
|
+
# Some very old devices lack the key for sensors data
|
535
|
+
return []
|
533
536
|
appliance_details = lambda_bridge["applianceDetails"]["applianceDetails"]
|
534
537
|
|
535
538
|
entity_ids_list: list[dict[str, str]] = []
|
@@ -714,7 +717,9 @@ class AmazonEchoApi:
|
|
714
717
|
self._devices[dev_serial] = {key: data}
|
715
718
|
|
716
719
|
entity_ids_list = await self._get_devices_ids()
|
717
|
-
devices_sensors =
|
720
|
+
devices_sensors = (
|
721
|
+
await self._get_sensors_states(entity_ids_list) if entity_ids_list else {}
|
722
|
+
)
|
718
723
|
|
719
724
|
final_devices_list: dict[str, AmazonDevice] = {}
|
720
725
|
for device in self._devices.values():
|
aioamazondevices/const.py
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
aioamazondevices/__init__.py,sha256=2DSSOh7jwZ_rZP4xsXnsdkag2SsB-Yh6U4UbbFvc3Y0,277
|
2
|
+
aioamazondevices/api.py,sha256=_V8n-KN4vCsHFv2CLo7OqMpOfN-3cbONR5THE5KeGio,36028
|
3
|
+
aioamazondevices/const.py,sha256=lfoZdhL2uh8-oJzA5o7PkEsdFhQ_sKKxr9FMDNXQVds,6270
|
4
|
+
aioamazondevices/exceptions.py,sha256=JDnSFi_7oEhqK31sHXf0S_cyMoMjiRJuLp4ow7mYgLY,643
|
5
|
+
aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
aioamazondevices/sounds.py,sha256=01pVCDFIuhrLypXInw4JNuHsC6zjMLsuKocet1R6we8,13409
|
7
|
+
aioamazondevices-3.1.10.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
8
|
+
aioamazondevices-3.1.10.dist-info/METADATA,sha256=ViLWtBe2O0dIupkHcEU8TGD-oYSh1BcHCozG3nyE4j0,5526
|
9
|
+
aioamazondevices-3.1.10.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
+
aioamazondevices-3.1.10.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
aioamazondevices/__init__.py,sha256=ICtOW_tHrZEDijdbMQG-peDgN5aEo7mir6Y0wIQQ4EA,276
|
2
|
-
aioamazondevices/api.py,sha256=d58FFzN_WEiqy3ZTquX1CKGgLRDrOSSI7Pb0Oh7ywho,35855
|
3
|
-
aioamazondevices/const.py,sha256=vcH00rBZN2lcCvaDkSMjUwEN9WbuF4atmUyKogGjz1M,6271
|
4
|
-
aioamazondevices/exceptions.py,sha256=JDnSFi_7oEhqK31sHXf0S_cyMoMjiRJuLp4ow7mYgLY,643
|
5
|
-
aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
aioamazondevices/sounds.py,sha256=01pVCDFIuhrLypXInw4JNuHsC6zjMLsuKocet1R6we8,13409
|
7
|
-
aioamazondevices-3.1.8.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
8
|
-
aioamazondevices-3.1.8.dist-info/METADATA,sha256=hoSyQcBtq0YKi_NxhypKK1kYWwwVD8RbZRmVk3EPREI,5525
|
9
|
-
aioamazondevices-3.1.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
-
aioamazondevices-3.1.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|