aioamazondevices 6.5.3__py3-none-any.whl → 6.5.4__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 aioamazondevices might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "6.5.3"
3
+ __version__ = "6.5.4"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
aioamazondevices/api.py CHANGED
@@ -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,
@@ -793,6 +794,18 @@ class AmazonEchoApi:
793
794
  for schedule in notifications["notifications"]:
794
795
  schedule_type: str = schedule["type"]
795
796
  schedule_device_serial = schedule["deviceSerialNumber"]
797
+
798
+ if schedule_device_serial in DEVICE_TO_IGNORE:
799
+ continue
800
+
801
+ if schedule_type not in NOTIFICATIONS_SUPPORTED:
802
+ _LOGGER.debug(
803
+ "Unsupported schedule type %s for device %s",
804
+ schedule_type,
805
+ schedule_device_serial,
806
+ )
807
+ continue
808
+
796
809
  if schedule_type == NOTIFICATION_MUSIC_ALARM:
797
810
  # Structure is the same as standard Alarm
798
811
  schedule_type = NOTIFICATION_ALARM
aioamazondevices/const.py CHANGED
@@ -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
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aioamazondevices
3
- Version: 6.5.3
3
+ Version: 6.5.4
4
4
  Summary: Python library to control Amazon devices
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -0,0 +1,12 @@
1
+ aioamazondevices/__init__.py,sha256=Gebx5LgQvFv43Yi3tiQ2rhUKmCIsrBO3Ti668TFikqc,276
2
+ aioamazondevices/api.py,sha256=x9dP_gJk6s_KsJSflpNM8xObqnYD9BM-WeBBE-azsh0,59593
3
+ aioamazondevices/const.py,sha256=qRRc5R1CAHEZ8vVuaMMVi1Q4xfEqvQmYnV8ZQ-xst2k,13691
4
+ aioamazondevices/exceptions.py,sha256=gRYrxNAJnrV6uRuMx5e76VMvtNKyceXd09q84pDBBrI,638
5
+ aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ aioamazondevices/query.py,sha256=xVgXF1PIiH7uu33Q_iVfCtdH9hqLOAGdCNnAxTZ76UE,1883
7
+ aioamazondevices/sounds.py,sha256=CXMDk-KoKVFxBdVAw3MeOClqgpzcVDxvQhFOJp7qX-Y,1896
8
+ aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
9
+ aioamazondevices-6.5.4.dist-info/METADATA,sha256=z4wtMdalDOcNqTqzxy50NNx6-ppt7SdGB1YB4n46C7s,7679
10
+ aioamazondevices-6.5.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
11
+ aioamazondevices-6.5.4.dist-info/licenses/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
12
+ aioamazondevices-6.5.4.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=cMUz1u0sAxf-PC4DbUYkcVDs1oMHY1cxiiBn9bYGZck,276
2
- aioamazondevices/api.py,sha256=O-ICuOIUcD-Gw12DDW-kF2PTqAIK882otyQGZtJ4CmE,59197
3
- aioamazondevices/const.py,sha256=EUoGr9gqqwoSz01gk56Nhw_-1Tdmv0Yjyh9cJb3ofbs,13556
4
- aioamazondevices/exceptions.py,sha256=gRYrxNAJnrV6uRuMx5e76VMvtNKyceXd09q84pDBBrI,638
5
- aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- aioamazondevices/query.py,sha256=xVgXF1PIiH7uu33Q_iVfCtdH9hqLOAGdCNnAxTZ76UE,1883
7
- aioamazondevices/sounds.py,sha256=CXMDk-KoKVFxBdVAw3MeOClqgpzcVDxvQhFOJp7qX-Y,1896
8
- aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
9
- aioamazondevices-6.5.3.dist-info/METADATA,sha256=7xIx9PG22o3LDQhnQEc9Gmg1yejw_3ixHACpr60aesM,7679
10
- aioamazondevices-6.5.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
11
- aioamazondevices-6.5.3.dist-info/licenses/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
12
- aioamazondevices-6.5.3.dist-info/RECORD,,