mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Bump aiowithings to 2.0.0 (#104579)
This commit is contained in:
parent
9907e11b03
commit
ccc8804906
@ -9,5 +9,5 @@
|
|||||||
"iot_class": "cloud_push",
|
"iot_class": "cloud_push",
|
||||||
"loggers": ["aiowithings"],
|
"loggers": ["aiowithings"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"requirements": ["aiowithings==1.0.3"]
|
"requirements": ["aiowithings==2.0.0"]
|
||||||
}
|
}
|
||||||
|
@ -424,10 +424,11 @@ ACTIVITY_SENSORS = [
|
|||||||
),
|
),
|
||||||
WithingsActivitySensorEntityDescription(
|
WithingsActivitySensorEntityDescription(
|
||||||
key="activity_floors_climbed_today",
|
key="activity_floors_climbed_today",
|
||||||
value_fn=lambda activity: activity.floors_climbed,
|
value_fn=lambda activity: activity.elevation,
|
||||||
translation_key="activity_floors_climbed_today",
|
translation_key="activity_elevation_today",
|
||||||
icon="mdi:stairs-up",
|
icon="mdi:stairs-up",
|
||||||
native_unit_of_measurement="floors",
|
native_unit_of_measurement=UnitOfLength.METERS,
|
||||||
|
device_class=SensorDeviceClass.DISTANCE,
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
),
|
),
|
||||||
WithingsActivitySensorEntityDescription(
|
WithingsActivitySensorEntityDescription(
|
||||||
@ -568,10 +569,11 @@ WORKOUT_SENSORS = [
|
|||||||
),
|
),
|
||||||
WithingsWorkoutSensorEntityDescription(
|
WithingsWorkoutSensorEntityDescription(
|
||||||
key="workout_floors_climbed",
|
key="workout_floors_climbed",
|
||||||
value_fn=lambda workout: workout.floors_climbed,
|
value_fn=lambda workout: workout.elevation,
|
||||||
translation_key="workout_floors_climbed",
|
translation_key="workout_elevation",
|
||||||
icon="mdi:stairs-up",
|
icon="mdi:stairs-up",
|
||||||
native_unit_of_measurement="floors",
|
native_unit_of_measurement=UnitOfLength.METERS,
|
||||||
|
device_class=SensorDeviceClass.DISTANCE,
|
||||||
),
|
),
|
||||||
WithingsWorkoutSensorEntityDescription(
|
WithingsWorkoutSensorEntityDescription(
|
||||||
key="workout_intensity",
|
key="workout_intensity",
|
||||||
|
@ -158,8 +158,8 @@
|
|||||||
"activity_distance_today": {
|
"activity_distance_today": {
|
||||||
"name": "Distance travelled today"
|
"name": "Distance travelled today"
|
||||||
},
|
},
|
||||||
"activity_floors_climbed_today": {
|
"activity_elevation_today": {
|
||||||
"name": "Floors climbed today"
|
"name": "Elevation change today"
|
||||||
},
|
},
|
||||||
"activity_soft_duration_today": {
|
"activity_soft_duration_today": {
|
||||||
"name": "Soft activity today"
|
"name": "Soft activity today"
|
||||||
@ -239,8 +239,8 @@
|
|||||||
"workout_distance": {
|
"workout_distance": {
|
||||||
"name": "Distance travelled last workout"
|
"name": "Distance travelled last workout"
|
||||||
},
|
},
|
||||||
"workout_floors_climbed": {
|
"workout_elevation": {
|
||||||
"name": "Floors climbed last workout"
|
"name": "Elevation change last workout"
|
||||||
},
|
},
|
||||||
"workout_intensity": {
|
"workout_intensity": {
|
||||||
"name": "Last workout intensity"
|
"name": "Last workout intensity"
|
||||||
|
@ -392,7 +392,7 @@ aiowatttime==0.1.1
|
|||||||
aiowebostv==0.3.3
|
aiowebostv==0.3.3
|
||||||
|
|
||||||
# homeassistant.components.withings
|
# homeassistant.components.withings
|
||||||
aiowithings==1.0.3
|
aiowithings==2.0.0
|
||||||
|
|
||||||
# homeassistant.components.yandex_transport
|
# homeassistant.components.yandex_transport
|
||||||
aioymaps==1.2.2
|
aioymaps==1.2.2
|
||||||
|
@ -365,7 +365,7 @@ aiowatttime==0.1.1
|
|||||||
aiowebostv==0.3.3
|
aiowebostv==0.3.3
|
||||||
|
|
||||||
# homeassistant.components.withings
|
# homeassistant.components.withings
|
||||||
aiowithings==1.0.3
|
aiowithings==2.0.0
|
||||||
|
|
||||||
# homeassistant.components.yandex_transport
|
# homeassistant.components.yandex_transport
|
||||||
aioymaps==1.2.2
|
aioymaps==1.2.2
|
||||||
|
@ -178,6 +178,38 @@
|
|||||||
'state': '1020.121',
|
'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]
|
# name: test_all_entities[sensor.henk_extracellular_water]
|
||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
@ -237,36 +269,6 @@
|
|||||||
'state': '0.07',
|
'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]
|
# name: test_all_entities[sensor.henk_heart_pulse]
|
||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user