Skip to content

Commit e762ad3

Browse files
committed
update tests
1 parent 972e79b commit e762ad3

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

tests/components/weatherflow_cloud/snapshots/test_sensor.ambr

+61-61
Original file line numberDiff line numberDiff line change
@@ -477,61 +477,6 @@
477477
'state': '2024-02-07T23:01:15+00:00',
478478
})
479479
# ---
480-
# name: test_all_entities[sensor.my_home_station_none-entry]
481-
EntityRegistryEntrySnapshot({
482-
'aliases': set({
483-
}),
484-
'area_id': None,
485-
'capabilities': dict({
486-
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
487-
}),
488-
'config_entry_id': <ANY>,
489-
'config_subentry_id': <ANY>,
490-
'device_class': None,
491-
'device_id': <ANY>,
492-
'disabled_by': None,
493-
'domain': 'sensor',
494-
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
495-
'entity_id': 'sensor.my_home_station_none',
496-
'has_entity_name': True,
497-
'hidden_by': None,
498-
'icon': None,
499-
'id': <ANY>,
500-
'labels': set({
501-
}),
502-
'name': None,
503-
'options': dict({
504-
'sensor': dict({
505-
'suggested_display_precision': 1,
506-
}),
507-
}),
508-
'original_device_class': None,
509-
'original_icon': None,
510-
'original_name': None,
511-
'platform': 'weatherflow_cloud',
512-
'previous_unique_id': None,
513-
'supported_features': 0,
514-
'translation_key': 'wind_sample_interval',
515-
'unique_id': '24432_123456_wind_sample_interval',
516-
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
517-
})
518-
# ---
519-
# name: test_all_entities[sensor.my_home_station_none-state]
520-
StateSnapshot({
521-
'attributes': ReadOnlyDict({
522-
'attribution': 'Weather data delivered by WeatherFlow/Tempest API',
523-
'friendly_name': 'My Home Station None',
524-
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
525-
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
526-
}),
527-
'context': <ANY>,
528-
'entity_id': 'sensor.my_home_station_none',
529-
'last_changed': <ANY>,
530-
'last_reported': <ANY>,
531-
'last_updated': <ANY>,
532-
'state': 'unavailable',
533-
})
534-
# ---
535480
# name: test_all_entities[sensor.my_home_station_pressure_barometric-entry]
536481
EntityRegistryEntrySnapshot({
537482
'aliases': set({
@@ -1043,6 +988,61 @@
1043988
'state': 'unavailable',
1044989
})
1045990
# ---
991+
# name: test_all_entities[sensor.my_home_station_wind_sample_interval-entry]
992+
EntityRegistryEntrySnapshot({
993+
'aliases': set({
994+
}),
995+
'area_id': None,
996+
'capabilities': dict({
997+
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
998+
}),
999+
'config_entry_id': <ANY>,
1000+
'config_subentry_id': <ANY>,
1001+
'device_class': None,
1002+
'device_id': <ANY>,
1003+
'disabled_by': None,
1004+
'domain': 'sensor',
1005+
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
1006+
'entity_id': 'sensor.my_home_station_wind_sample_interval',
1007+
'has_entity_name': True,
1008+
'hidden_by': None,
1009+
'icon': None,
1010+
'id': <ANY>,
1011+
'labels': set({
1012+
}),
1013+
'name': None,
1014+
'options': dict({
1015+
'sensor': dict({
1016+
'suggested_display_precision': 1,
1017+
}),
1018+
}),
1019+
'original_device_class': None,
1020+
'original_icon': None,
1021+
'original_name': 'Wind sample interval',
1022+
'platform': 'weatherflow_cloud',
1023+
'previous_unique_id': None,
1024+
'supported_features': 0,
1025+
'translation_key': 'wind_sample_interval',
1026+
'unique_id': '24432_123456_wind_sample_interval',
1027+
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
1028+
})
1029+
# ---
1030+
# name: test_all_entities[sensor.my_home_station_wind_sample_interval-state]
1031+
StateSnapshot({
1032+
'attributes': ReadOnlyDict({
1033+
'attribution': 'Weather data delivered by WeatherFlow/Tempest API',
1034+
'friendly_name': 'My Home Station Wind sample interval',
1035+
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
1036+
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
1037+
}),
1038+
'context': <ANY>,
1039+
'entity_id': 'sensor.my_home_station_wind_sample_interval',
1040+
'last_changed': <ANY>,
1041+
'last_reported': <ANY>,
1042+
'last_updated': <ANY>,
1043+
'state': 'unavailable',
1044+
})
1045+
# ---
10461046
# name: test_all_entities[sensor.my_home_station_wind_speed-entry]
10471047
EntityRegistryEntrySnapshot({
10481048
'aliases': set({
@@ -1102,7 +1102,7 @@
11021102
'state': 'unavailable',
11031103
})
11041104
# ---
1105-
# name: test_all_entities[sensor.my_home_station_wind_speed_2-entry]
1105+
# name: test_all_entities[sensor.my_home_station_wind_speed_avg-entry]
11061106
EntityRegistryEntrySnapshot({
11071107
'aliases': set({
11081108
}),
@@ -1117,7 +1117,7 @@
11171117
'disabled_by': None,
11181118
'domain': 'sensor',
11191119
'entity_category': None,
1120-
'entity_id': 'sensor.my_home_station_wind_speed_2',
1120+
'entity_id': 'sensor.my_home_station_wind_speed_avg',
11211121
'has_entity_name': True,
11221122
'hidden_by': None,
11231123
'icon': None,
@@ -1135,7 +1135,7 @@
11351135
}),
11361136
'original_device_class': <SensorDeviceClass.WIND_SPEED: 'wind_speed'>,
11371137
'original_icon': None,
1138-
'original_name': 'Wind speed',
1138+
'original_name': 'Wind speed (avg)',
11391139
'platform': 'weatherflow_cloud',
11401140
'previous_unique_id': None,
11411141
'supported_features': 0,
@@ -1144,17 +1144,17 @@
11441144
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
11451145
})
11461146
# ---
1147-
# name: test_all_entities[sensor.my_home_station_wind_speed_2-state]
1147+
# name: test_all_entities[sensor.my_home_station_wind_speed_avg-state]
11481148
StateSnapshot({
11491149
'attributes': ReadOnlyDict({
11501150
'attribution': 'Weather data delivered by WeatherFlow/Tempest API',
11511151
'device_class': 'wind_speed',
1152-
'friendly_name': 'My Home Station Wind speed',
1152+
'friendly_name': 'My Home Station Wind speed (avg)',
11531153
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
11541154
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
11551155
}),
11561156
'context': <ANY>,
1157-
'entity_id': 'sensor.my_home_station_wind_speed_2',
1157+
'entity_id': 'sensor.my_home_station_wind_speed_avg',
11581158
'last_changed': <ANY>,
11591159
'last_reported': <ANY>,
11601160
'last_updated': <ANY>,

0 commit comments

Comments
 (0)