mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 06:26:17 +00:00
Update A. O. Smith integration to reflect upstream API changes (#127678)
This commit is contained in:
committed by
GitHub
parent
3cda93d001
commit
b4dfd08bc4
@@ -10,7 +10,6 @@ from py_aosmith.models import (
|
||||
DeviceType,
|
||||
EnergyUseData,
|
||||
EnergyUseHistoryEntry,
|
||||
HotWaterStatus,
|
||||
OperationMode,
|
||||
SupportedOperationModeInfo,
|
||||
)
|
||||
@@ -93,7 +92,7 @@ def build_device_fixture(
|
||||
temperature_setpoint_pending=setpoint_pending,
|
||||
temperature_setpoint_previous=130,
|
||||
temperature_setpoint_maximum=130,
|
||||
hot_water_status=HotWaterStatus.LOW,
|
||||
hot_water_status=90,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
}
|
||||
],
|
||||
"firmwareVersion": "2.14",
|
||||
"hotWaterStatus": "HIGH",
|
||||
"hotWaterStatus": 10,
|
||||
"isAdvancedLoadUpMore": false,
|
||||
"isCtaUcmPresent": false,
|
||||
"isDemandResponsePaused": false,
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
'error': '',
|
||||
'firmwareVersion': '2.14',
|
||||
'heaterSsid': '**REDACTED**',
|
||||
'hotWaterStatus': 'HIGH',
|
||||
'hotWaterStatus': 10,
|
||||
'isAdvancedLoadUpMore': False,
|
||||
'isCtaUcmPresent': False,
|
||||
'isDemandResponsePaused': False,
|
||||
|
||||
@@ -58,13 +58,7 @@
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'low',
|
||||
'medium',
|
||||
'high',
|
||||
]),
|
||||
}),
|
||||
'capabilities': None,
|
||||
'config_entry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
@@ -81,7 +75,7 @@
|
||||
'name': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.ENUM: 'enum'>,
|
||||
'original_device_class': None,
|
||||
'original_icon': None,
|
||||
'original_name': 'Hot water availability',
|
||||
'platform': 'aosmith',
|
||||
@@ -89,25 +83,20 @@
|
||||
'supported_features': 0,
|
||||
'translation_key': 'hot_water_availability',
|
||||
'unique_id': 'hot_water_availability_junctionId',
|
||||
'unit_of_measurement': None,
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
# ---
|
||||
# name: test_state[sensor.my_water_heater_hot_water_availability-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'enum',
|
||||
'friendly_name': 'My water heater Hot water availability',
|
||||
'options': list([
|
||||
'low',
|
||||
'medium',
|
||||
'high',
|
||||
]),
|
||||
'unit_of_measurement': '%',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.my_water_heater_hot_water_availability',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'low',
|
||||
'state': '90',
|
||||
})
|
||||
# ---
|
||||
|
||||
Reference in New Issue
Block a user