aioamazondevices 6.5.3__tar.gz → 6.5.5__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.
Potentially problematic release.
This version of aioamazondevices might be problematic. Click here for more details.
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/PKG-INFO +10 -3
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/README.md +9 -2
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/pyproject.toml +1 -1
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/__init__.py +1 -1
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/api.py +16 -0
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/const.py +6 -0
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/LICENSE +0 -0
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/exceptions.py +0 -0
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/py.typed +0 -0
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/query.py +0 -0
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/sounds.py +0 -0
- {aioamazondevices-6.5.3 → aioamazondevices-6.5.5}/src/aioamazondevices/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aioamazondevices
|
|
3
|
-
Version: 6.5.
|
|
3
|
+
Version: 6.5.5
|
|
4
4
|
Summary: Python library to control Amazon devices
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
License-File: LICENSE
|
|
@@ -142,6 +142,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
142
142
|
<sub><b>Flo</b></sub>
|
|
143
143
|
</a>
|
|
144
144
|
</td>
|
|
145
|
+
<td align="center">
|
|
146
|
+
<a href="https://github.com/francescolf">
|
|
147
|
+
<img src="https://avatars.githubusercontent.com/u/14892143?v=4" width="100;" alt="francescolf"/>
|
|
148
|
+
<br />
|
|
149
|
+
<sub><b>Francesco Lo Faro</b></sub>
|
|
150
|
+
</a>
|
|
151
|
+
</td>
|
|
152
|
+
</tr>
|
|
153
|
+
<tr>
|
|
145
154
|
<td align="center">
|
|
146
155
|
<a href="https://github.com/lchavezcuu">
|
|
147
156
|
<img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
|
|
@@ -149,8 +158,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
149
158
|
<sub><b>Luis Chavez</b></sub>
|
|
150
159
|
</a>
|
|
151
160
|
</td>
|
|
152
|
-
</tr>
|
|
153
|
-
<tr>
|
|
154
161
|
<td align="center">
|
|
155
162
|
<a href="https://github.com/maxmati">
|
|
156
163
|
<img src="https://avatars.githubusercontent.com/u/509560?v=4" width="100;" alt="maxmati"/>
|
|
@@ -117,6 +117,15 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
117
117
|
<sub><b>Flo</b></sub>
|
|
118
118
|
</a>
|
|
119
119
|
</td>
|
|
120
|
+
<td align="center">
|
|
121
|
+
<a href="https://github.com/francescolf">
|
|
122
|
+
<img src="https://avatars.githubusercontent.com/u/14892143?v=4" width="100;" alt="francescolf"/>
|
|
123
|
+
<br />
|
|
124
|
+
<sub><b>Francesco Lo Faro</b></sub>
|
|
125
|
+
</a>
|
|
126
|
+
</td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr>
|
|
120
129
|
<td align="center">
|
|
121
130
|
<a href="https://github.com/lchavezcuu">
|
|
122
131
|
<img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
|
|
@@ -124,8 +133,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
124
133
|
<sub><b>Luis Chavez</b></sub>
|
|
125
134
|
</a>
|
|
126
135
|
</td>
|
|
127
|
-
</tr>
|
|
128
|
-
<tr>
|
|
129
136
|
<td align="center">
|
|
130
137
|
<a href="https://github.com/maxmati">
|
|
131
138
|
<img src="https://avatars.githubusercontent.com/u/509560?v=4" width="100;" alt="maxmati"/>
|
|
@@ -56,6 +56,7 @@ from .const import (
|
|
|
56
56
|
NOTIFICATION_MUSIC_ALARM,
|
|
57
57
|
NOTIFICATION_REMINDER,
|
|
58
58
|
NOTIFICATION_TIMER,
|
|
59
|
+
NOTIFICATIONS_SUPPORTED,
|
|
59
60
|
RECURRING_PATTERNS,
|
|
60
61
|
REFRESH_ACCESS_TOKEN,
|
|
61
62
|
REFRESH_AUTH_COOKIES,
|
|
@@ -612,6 +613,9 @@ class AmazonEchoApi:
|
|
|
612
613
|
"""Retrieve devices sensors states."""
|
|
613
614
|
devices_sensors: dict[str, dict[str, AmazonDeviceSensor]] = {}
|
|
614
615
|
|
|
616
|
+
if not self._endpoints:
|
|
617
|
+
return {}
|
|
618
|
+
|
|
615
619
|
endpoint_ids = list(self._endpoints.keys())
|
|
616
620
|
payload = [
|
|
617
621
|
{
|
|
@@ -793,6 +797,18 @@ class AmazonEchoApi:
|
|
|
793
797
|
for schedule in notifications["notifications"]:
|
|
794
798
|
schedule_type: str = schedule["type"]
|
|
795
799
|
schedule_device_serial = schedule["deviceSerialNumber"]
|
|
800
|
+
|
|
801
|
+
if schedule_device_serial in DEVICE_TO_IGNORE:
|
|
802
|
+
continue
|
|
803
|
+
|
|
804
|
+
if schedule_type not in NOTIFICATIONS_SUPPORTED:
|
|
805
|
+
_LOGGER.debug(
|
|
806
|
+
"Unsupported schedule type %s for device %s",
|
|
807
|
+
schedule_type,
|
|
808
|
+
schedule_device_serial,
|
|
809
|
+
)
|
|
810
|
+
continue
|
|
811
|
+
|
|
796
812
|
if schedule_type == NOTIFICATION_MUSIC_ALARM:
|
|
797
813
|
# Structure is the same as standard Alarm
|
|
798
814
|
schedule_type = NOTIFICATION_ALARM
|
|
@@ -534,3 +534,9 @@ NOTIFICATION_ALARM = "Alarm"
|
|
|
534
534
|
NOTIFICATION_MUSIC_ALARM = "MusicAlarm"
|
|
535
535
|
NOTIFICATION_REMINDER = "Reminder"
|
|
536
536
|
NOTIFICATION_TIMER = "Timer"
|
|
537
|
+
NOTIFICATIONS_SUPPORTED = [
|
|
538
|
+
NOTIFICATION_ALARM,
|
|
539
|
+
NOTIFICATION_MUSIC_ALARM,
|
|
540
|
+
NOTIFICATION_REMINDER,
|
|
541
|
+
NOTIFICATION_TIMER,
|
|
542
|
+
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|