From 0ae3fd87efea197fa158c99d646d4e1ec0475941 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 23 Oct 2026 18:15:09 +0000 Subject: [PATCH] Revert aioamazondevices bumps to 16.8.1 and 16.9.1 This reverts #187332 and #187985 from the 2026.10 release branch. Since 16.4.0, aioamazondevices requires orjson>=3.13.0, which conflicts with the orjson==3.11.9 pin on this branch. --- .../components/alexa_devices/binary_sensor.py | 2 +- .../components/alexa_devices/manifest.json | 2 +- requirements_all.txt | 2 +- tests/components/alexa_devices/const.py | 33 ------------------- .../snapshots/test_diagnostics.ambr | 12 ------- .../snapshots/test_services.ambr | 30 ----------------- tests/components/alexa_devices/test_sensor.py | 6 ---- 7 files changed, 3 insertions(+), 84 deletions(-) diff --git a/homeassistant/components/alexa_devices/binary_sensor.py b/homeassistant/components/alexa_devices/binary_sensor.py index 3675500d60f6..bd7b41c6d5d2 100644 --- a/homeassistant/components/alexa_devices/binary_sensor.py +++ b/homeassistant/components/alexa_devices/binary_sensor.py @@ -4,7 +4,7 @@ from collections.abc import Callable from dataclasses import dataclass from typing import Final, override -from aioamazondevices.const.sensors import SENSOR_STATE_OFF +from aioamazondevices.const.metadata import SENSOR_STATE_OFF from aioamazondevices.structures import AmazonDevice from homeassistant.components.binary_sensor import ( diff --git a/homeassistant/components/alexa_devices/manifest.json b/homeassistant/components/alexa_devices/manifest.json index fe89fa4a1c4b..f653fa1623c9 100644 --- a/homeassistant/components/alexa_devices/manifest.json +++ b/homeassistant/components/alexa_devices/manifest.json @@ -8,5 +8,5 @@ "iot_class": "cloud_polling", "loggers": ["aioamazondevices"], "quality_scale": "platinum", - "requirements": ["aioamazondevices==16.9.1"] + "requirements": ["aioamazondevices==16.3.2"] } diff --git a/requirements_all.txt b/requirements_all.txt index ce3952d85477..14379fccafae 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -190,7 +190,7 @@ aioairzone-cloud==0.7.2 aioairzone==1.0.5 # homeassistant.components.alexa_devices -aioamazondevices==16.9.1 +aioamazondevices==16.3.2 # homeassistant.components.ambient_network # homeassistant.components.ambient_station diff --git a/tests/components/alexa_devices/const.py b/tests/components/alexa_devices/const.py index f524b68c69bb..c312419d7ca2 100644 --- a/tests/components/alexa_devices/const.py +++ b/tests/components/alexa_devices/const.py @@ -47,9 +47,6 @@ TEST_DEVICE_1 = AmazonDevice( error_msg=None, error_type=None, scale=None, - feature_name="dnd", - property_name="dnd", - instance="", ), "temperature": AmazonDeviceSensor( name="temperature", @@ -58,9 +55,6 @@ TEST_DEVICE_1 = AmazonDevice( error_msg=None, error_type=None, scale="CELSIUS", - feature_name="temperatureSensor", - property_name="temperature", - instance="1", ), }, notifications_supported=True, @@ -91,8 +85,6 @@ TEST_DEVICE_1 = AmazonDevice( "dropin": "All", }, voice_control_supported=True, - features={}, - unsupported_features={}, ) TEST_DEVICE_2_SN = "echo_test_2_serial_number" @@ -121,9 +113,6 @@ TEST_DEVICE_2 = AmazonDevice( error_msg=None, error_type=None, scale="CELSIUS", - feature_name="temperatureSensor", - property_name="temperature", - instance="1", ) }, notifications_supported=False, @@ -131,8 +120,6 @@ TEST_DEVICE_2 = AmazonDevice( media_player_supported=False, communication_settings={}, voice_control_supported=True, - features={}, - unsupported_features={}, ) TEST_DEVICE_AQM_SN = "aqm_test_serial_number" @@ -163,9 +150,6 @@ TEST_DEVICE_AQM = AmazonDevice( error_msg=None, error_type=None, scale="%", - feature_name="range", - property_name="rangeValue", - instance="4", ), "VOC": AmazonDeviceSensor( name="VOC", @@ -174,9 +158,6 @@ TEST_DEVICE_AQM = AmazonDevice( error_msg=None, error_type=None, scale=None, - feature_name="range", - property_name="rangeValue", - instance="5", ), "PM25": AmazonDeviceSensor( name="PM25", @@ -185,9 +166,6 @@ TEST_DEVICE_AQM = AmazonDevice( error_msg=None, error_type=None, scale="MicroGramsPerCubicMeter", - feature_name="range", - property_name="rangeValue", - instance="6", ), "PM10": AmazonDeviceSensor( name="PM10", @@ -196,9 +174,6 @@ TEST_DEVICE_AQM = AmazonDevice( error_msg=None, error_type=None, scale="MicroGramsPerCubicMeter", - feature_name="range", - property_name="rangeValue", - instance="7", ), "CO": AmazonDeviceSensor( name="CO", @@ -207,9 +182,6 @@ TEST_DEVICE_AQM = AmazonDevice( error_msg=None, error_type=None, scale="ppm", - feature_name="range", - property_name="rangeValue", - instance="8", ), "Air Quality": AmazonDeviceSensor( name="Air Quality", @@ -218,9 +190,6 @@ TEST_DEVICE_AQM = AmazonDevice( error_msg=None, error_type=None, scale=None, - feature_name="range", - property_name="rangeValue", - instance="9", ), }, notifications_supported=False, @@ -228,8 +197,6 @@ TEST_DEVICE_AQM = AmazonDevice( media_player_supported=False, communication_settings={}, voice_control_supported=False, - features={}, - unsupported_features={}, ) TEST_VOCAL_RECORD_INITIAL = AmazonVocalRecord( diff --git a/tests/components/alexa_devices/snapshots/test_diagnostics.ambr b/tests/components/alexa_devices/snapshots/test_diagnostics.ambr index 50dc655950a6..ee115d6e6075 100644 --- a/tests/components/alexa_devices/snapshots/test_diagnostics.ambr +++ b/tests/components/alexa_devices/snapshots/test_diagnostics.ambr @@ -18,10 +18,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'dnd', - 'instance': '', 'name': 'dnd', - 'property_name': 'dnd', 'scale': None, 'time_of_sample': None, 'value': False, @@ -30,10 +27,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'temperatureSensor', - 'instance': '1', 'name': 'temperature', - 'property_name': 'temperature', 'scale': 'CELSIUS', 'time_of_sample': None, 'value': '22.5', @@ -65,10 +59,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'dnd', - 'instance': '', 'name': 'dnd', - 'property_name': 'dnd', 'scale': None, 'time_of_sample': None, 'value': False, @@ -77,10 +68,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'temperatureSensor', - 'instance': '1', 'name': 'temperature', - 'property_name': 'temperature', 'scale': 'CELSIUS', 'time_of_sample': None, 'value': '22.5', diff --git a/tests/components/alexa_devices/snapshots/test_services.ambr b/tests/components/alexa_devices/snapshots/test_services.ambr index 7fd552a8277a..c677a1acf424 100644 --- a/tests/components/alexa_devices/snapshots/test_services.ambr +++ b/tests/components/alexa_devices/snapshots/test_services.ambr @@ -22,8 +22,6 @@ 'device_type': 'echo', 'endpoint_id': 'G1234567890123456789012345678A', 'entity_id': '11111111-2222-3333-4444-555555555555', - 'features': dict({ - }), 'hardware_version': '1.0', 'household_device': False, 'manufacturer': 'Test manufacturer', @@ -58,10 +56,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'dnd', - 'instance': '', 'name': 'dnd', - 'property_name': 'dnd', 'scale': None, 'time_of_sample': None, 'value': False, @@ -70,10 +65,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'temperatureSensor', - 'instance': '1', 'name': 'temperature', - 'property_name': 'temperature', 'scale': 'CELSIUS', 'time_of_sample': None, 'value': '22.5', @@ -81,8 +73,6 @@ }), 'serial_number': 'echo_test_serial_number', 'software_version': 'echo_test_software_version', - 'unsupported_features': dict({ - }), 'voice_control_supported': True, }), 'Alexa.Joke.Play', @@ -114,8 +104,6 @@ 'device_type': 'echo', 'endpoint_id': 'G1234567890123456789012345678A', 'entity_id': '11111111-2222-3333-4444-555555555555', - 'features': dict({ - }), 'hardware_version': '1.0', 'household_device': False, 'manufacturer': 'Test manufacturer', @@ -150,10 +138,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'dnd', - 'instance': '', 'name': 'dnd', - 'property_name': 'dnd', 'scale': None, 'time_of_sample': None, 'value': False, @@ -162,10 +147,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'temperatureSensor', - 'instance': '1', 'name': 'temperature', - 'property_name': 'temperature', 'scale': 'CELSIUS', 'time_of_sample': None, 'value': '22.5', @@ -173,8 +155,6 @@ }), 'serial_number': 'echo_test_serial_number', 'software_version': 'echo_test_software_version', - 'unsupported_features': dict({ - }), 'voice_control_supported': True, }), 'bell_02', @@ -206,8 +186,6 @@ 'device_type': 'echo', 'endpoint_id': 'G1234567890123456789012345678A', 'entity_id': '11111111-2222-3333-4444-555555555555', - 'features': dict({ - }), 'hardware_version': '1.0', 'household_device': False, 'manufacturer': 'Test manufacturer', @@ -242,10 +220,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'dnd', - 'instance': '', 'name': 'dnd', - 'property_name': 'dnd', 'scale': None, 'time_of_sample': None, 'value': False, @@ -254,10 +229,7 @@ 'error': False, 'error_msg': None, 'error_type': None, - 'feature_name': 'temperatureSensor', - 'instance': '1', 'name': 'temperature', - 'property_name': 'temperature', 'scale': 'CELSIUS', 'time_of_sample': None, 'value': '22.5', @@ -265,8 +237,6 @@ }), 'serial_number': 'echo_test_serial_number', 'software_version': 'echo_test_software_version', - 'unsupported_features': dict({ - }), 'voice_control_supported': True, }), 'Play B.B.C. radio on TuneIn', diff --git a/tests/components/alexa_devices/test_sensor.py b/tests/components/alexa_devices/test_sensor.py index 03607b055a7e..8171f4ae591d 100644 --- a/tests/components/alexa_devices/test_sensor.py +++ b/tests/components/alexa_devices/test_sensor.py @@ -178,9 +178,6 @@ async def test_unit_of_measurement( error_msg=None, error_type=None, scale=scale, - feature_name="sensor", - property_name="sensor", - instance="1", ) } @@ -211,9 +208,6 @@ async def test_sensor_unavailable( error_msg=None, error_type=None, scale=None, - feature_name="lightSensor", - property_name="illuminance", - instance="1", ) }