From 039702cf83883ce6b168c18534b191499e73e8f5 Mon Sep 17 00:00:00 2001 From: Andrew Neisch Date: Thu, 21 Dec 2023 19:40:59 -0600 Subject: [PATCH] Changes --- README.md | 6 +++--- custom_components/alexa_media/__init__.py | 3 ++- custom_components/alexa_media/const.py | 2 +- custom_components/alexa_media/manifest.json | 2 +- extras/docker-compose/other/docker-compose.yml | 3 +++ extras/docker-compose/unified/docker-compose.yml | 3 +++ scripts.yaml | 2 -- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0bdd297b..67ebea1e 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC Description | value -- | -- Lines of ESPHome YAML | 2776 -Lines of Home Assistant YAML | 8452 +Lines of Home Assistant YAML | 8450 [Integrations](https://www.home-assistant.io/integrations/) in use | 52 Zigbee devices in [`zha`](https://www.home-assistant.io/integrations/zha/) | 26 Z-Wave devices in [`zwave_js`](https://www.home-assistant.io/integrations/zwave_js/) | 37 @@ -64,7 +64,7 @@ Z-Wave devices in [`zwave_js`](https://www.home-assistant.io/integrations/zwave_ Description | value -- | -- Entities in the [`alarm_control_panel`](https://www.home-assistant.io/components/alarm_control_panel) domain | 1 -Entities in the [`automation`](https://www.home-assistant.io/components/automation) domain | 114 +Entities in the [`automation`](https://www.home-assistant.io/components/automation) domain | 113 Entities in the [`binary_sensor`](https://www.home-assistant.io/components/binary_sensor) domain | 138 Entities in the [`button`](https://www.home-assistant.io/components/button) domain | 14 Entities in the [`camera`](https://www.home-assistant.io/components/camera) domain | 18 @@ -100,7 +100,7 @@ Entities in the [`update`](https://www.home-assistant.io/components/update) doma Entities in the [`vacuum`](https://www.home-assistant.io/components/vacuum) domain | 1 Entities in the [`weather`](https://www.home-assistant.io/components/weather) domain | 2 Entities in the [`zone`](https://www.home-assistant.io/components/zone) domain | 6 -**Total state objects** | **1160** +**Total state objects** | **1159** ## The HACS integrations/plugins that I use: **Appdaemon**:
[aneisch/follow_me_appdaemon](https://github.com/aneisch/follow_me_appdaemon)
diff --git a/custom_components/alexa_media/__init__.py b/custom_components/alexa_media/__init__.py index a41040a0..275c5afe 100644 --- a/custom_components/alexa_media/__init__.py +++ b/custom_components/alexa_media/__init__.py @@ -750,7 +750,8 @@ async def update_last_called(login_obj, last_called=None, force=False): """ if not last_called or not (last_called and last_called.get("summary")): try: - last_called = await AlexaAPI.get_last_device_serial(login_obj) + async with async_timeout.timeout(10): + last_called = await AlexaAPI.get_last_device_serial(login_obj) except TypeError: _LOGGER.debug( "%s: Error updating last_called: %s", diff --git a/custom_components/alexa_media/const.py b/custom_components/alexa_media/const.py index 929a57b0..dcd2c10f 100644 --- a/custom_components/alexa_media/const.py +++ b/custom_components/alexa_media/const.py @@ -14,7 +14,7 @@ PERCENTAGE, ) -__version__ = "4.8.0" +__version__ = "4.8.1" PROJECT_URL = "https://github.com/alandtse/alexa_media_player/" ISSUE_URL = f"{PROJECT_URL}issues" NOTIFY_URL = f"{PROJECT_URL}wiki/Configuration%3A-Notification-Component#use-the-notifyalexa_media-service" diff --git a/custom_components/alexa_media/manifest.json b/custom_components/alexa_media/manifest.json index 833df0d7..c6da5cc9 100644 --- a/custom_components/alexa_media/manifest.json +++ b/custom_components/alexa_media/manifest.json @@ -9,5 +9,5 @@ "issue_tracker": "https://github.com/alandtse/alexa_media_player/issues", "loggers": ["alexapy", "authcaptureproxy"], "requirements": ["alexapy==1.27.10", "packaging>=20.3", "wrapt>=1.14.0"], - "version": "4.8.0" + "version": "4.8.1" } diff --git a/extras/docker-compose/other/docker-compose.yml b/extras/docker-compose/other/docker-compose.yml index 697f0f4d..df66610b 100644 --- a/extras/docker-compose/other/docker-compose.yml +++ b/extras/docker-compose/other/docker-compose.yml @@ -101,6 +101,9 @@ services: - DUO_SKEY= - DUO_HOST= - TZ=America/Chicago + - PUSH_ENABLED=true + - PUSH_INSTALLATION_ID= + - PUSH_INSTALLATION_KEY= #ports: # - '8777:1024' # - '3012:3012' diff --git a/extras/docker-compose/unified/docker-compose.yml b/extras/docker-compose/unified/docker-compose.yml index ea66d98d..39ae299b 100644 --- a/extras/docker-compose/unified/docker-compose.yml +++ b/extras/docker-compose/unified/docker-compose.yml @@ -278,6 +278,9 @@ services: - DUO_SKEY= - DUO_HOST= - TZ=America/Chicago + - PUSH_ENABLED=true + - PUSH_INSTALLATION_ID= + - PUSH_INSTALLATION_KEY= #ports: # - '8777:1024' # - '3012:3012' diff --git a/scripts.yaml b/scripts.yaml index 059ce0f6..2dcadd26 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -173,8 +173,6 @@ notify_wrapper: - service: notify.signal_self data: message: "{{ message }}" - data: - priority: 0 else: # If no internet: send via cellular - if: '{{ "priority" in data }}'