Bump aiowithings to 2.0.0 (#104579)
parent
9907e11b03
commit
ccc8804906
|
@ -9,5 +9,5 @@
|
|||
"iot_class": "cloud_push",
|
||||
"loggers": ["aiowithings"],
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["aiowithings==1.0.3"]
|
||||
"requirements": ["aiowithings==2.0.0"]
|
||||
}
|
||||
|
|
|
@ -424,10 +424,11 @@ ACTIVITY_SENSORS = [
|
|||
),
|
||||
WithingsActivitySensorEntityDescription(
|
||||
key="activity_floors_climbed_today",
|
||||
value_fn=lambda activity: activity.floors_climbed,
|
||||
translation_key="activity_floors_climbed_today",
|
||||
value_fn=lambda activity: activity.elevation,
|
||||
translation_key="activity_elevation_today",
|
||||
icon="mdi:stairs-up",
|
||||
native_unit_of_measurement="floors",
|
||||
native_unit_of_measurement=UnitOfLength.METERS,
|
||||
device_class=SensorDeviceClass.DISTANCE,
|
||||
state_class=SensorStateClass.TOTAL,
|
||||
),
|
||||
WithingsActivitySensorEntityDescription(
|
||||
|
@ -568,10 +569,11 @@ WORKOUT_SENSORS = [
|
|||
),
|
||||
WithingsWorkoutSensorEntityDescription(
|
||||
key="workout_floors_climbed",
|
||||
value_fn=lambda workout: workout.floors_climbed,
|
||||
translation_key="workout_floors_climbed",
|
||||
value_fn=lambda workout: workout.elevation,
|
||||
translation_key="workout_elevation",
|
||||
icon="mdi:stairs-up",
|
||||
native_unit_of_measurement="floors",
|
||||
native_unit_of_measurement=UnitOfLength.METERS,
|
||||
device_class=SensorDeviceClass.DISTANCE,
|
||||
),
|
||||
WithingsWorkoutSensorEntityDescription(
|
||||
key="workout_intensity",
|
||||
|
|
|
@ -158,8 +158,8 @@
|
|||
"activity_distance_today": {
|
||||
"name": "Distance travelled today"
|
||||
},
|
||||
"activity_floors_climbed_today": {
|
||||
"name": "Floors climbed today"
|
||||
"activity_elevation_today": {
|
||||
"name": "Elevation change today"
|
||||
},
|
||||
"activity_soft_duration_today": {
|
||||
"name": "Soft activity today"
|
||||
|
@ -239,8 +239,8 @@
|
|||
"workout_distance": {
|
||||
"name": "Distance travelled last workout"
|
||||
},
|
||||
"workout_floors_climbed": {
|
||||
"name": "Floors climbed last workout"
|
||||
"workout_elevation": {
|
||||
"name": "Elevation change last workout"
|
||||
},
|
||||
"workout_intensity": {
|
||||
"name": "Last workout intensity"
|
||||
|
|
|
@ -392,7 +392,7 @@ aiowatttime==0.1.1
|
|||
aiowebostv==0.3.3
|
||||
|
||||
# homeassistant.components.withings
|
||||
aiowithings==1.0.3
|
||||
aiowithings==2.0.0
|
||||
|
||||
# homeassistant.components.yandex_transport
|
||||
aioymaps==1.2.2
|
||||
|
|
|
@ -365,7 +365,7 @@ aiowatttime==0.1.1
|
|||
aiowebostv==0.3.3
|
||||
|
||||
# homeassistant.components.withings
|
||||
aiowithings==1.0.3
|
||||
aiowithings==2.0.0
|
||||
|
||||
# homeassistant.components.yandex_transport
|
||||
aioymaps==1.2.2
|
||||
|
|
|
@ -178,6 +178,38 @@
|
|||
'state': '1020.121',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[sensor.henk_elevation_change_last_workout]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'distance',
|
||||
'friendly_name': 'henk Elevation change last workout',
|
||||
'icon': 'mdi:stairs-up',
|
||||
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.henk_elevation_change_last_workout',
|
||||
'last_changed': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '4',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[sensor.henk_elevation_change_today]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'distance',
|
||||
'friendly_name': 'henk Elevation change today',
|
||||
'icon': 'mdi:stairs-up',
|
||||
'last_reset': '2023-10-20T00:00:00-07:00',
|
||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
||||
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.henk_elevation_change_today',
|
||||
'last_changed': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '0',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[sensor.henk_extracellular_water]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
|
@ -237,36 +269,6 @@
|
|||
'state': '0.07',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[sensor.henk_floors_climbed_last_workout]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'henk Floors climbed last workout',
|
||||
'icon': 'mdi:stairs-up',
|
||||
'unit_of_measurement': 'floors',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.henk_floors_climbed_last_workout',
|
||||
'last_changed': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '4',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[sensor.henk_floors_climbed_today]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'henk Floors climbed today',
|
||||
'icon': 'mdi:stairs-up',
|
||||
'last_reset': '2023-10-20T00:00:00-07:00',
|
||||
'state_class': <SensorStateClass.TOTAL: 'total'>,
|
||||
'unit_of_measurement': 'floors',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.henk_floors_climbed_today',
|
||||
'last_changed': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': '0',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[sensor.henk_heart_pulse]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
|
|
Loading…
Reference in New Issue