|
477 | 477 | 'state': '2024-02-07T23:01:15+00:00',
|
478 | 478 | })
|
479 | 479 | # ---
|
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 |
| -# --- |
535 | 480 | # name: test_all_entities[sensor.my_home_station_pressure_barometric-entry]
|
536 | 481 | EntityRegistryEntrySnapshot({
|
537 | 482 | 'aliases': set({
|
|
1043 | 988 | 'state': 'unavailable',
|
1044 | 989 | })
|
1045 | 990 | # ---
|
| 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 | +# --- |
1046 | 1046 | # name: test_all_entities[sensor.my_home_station_wind_speed-entry]
|
1047 | 1047 | EntityRegistryEntrySnapshot({
|
1048 | 1048 | 'aliases': set({
|
|
1102 | 1102 | 'state': 'unavailable',
|
1103 | 1103 | })
|
1104 | 1104 | # ---
|
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] |
1106 | 1106 | EntityRegistryEntrySnapshot({
|
1107 | 1107 | 'aliases': set({
|
1108 | 1108 | }),
|
|
1117 | 1117 | 'disabled_by': None,
|
1118 | 1118 | 'domain': 'sensor',
|
1119 | 1119 | 'entity_category': None,
|
1120 |
| - 'entity_id': 'sensor.my_home_station_wind_speed_2', |
| 1120 | + 'entity_id': 'sensor.my_home_station_wind_speed_avg', |
1121 | 1121 | 'has_entity_name': True,
|
1122 | 1122 | 'hidden_by': None,
|
1123 | 1123 | 'icon': None,
|
|
1135 | 1135 | }),
|
1136 | 1136 | 'original_device_class': <SensorDeviceClass.WIND_SPEED: 'wind_speed'>,
|
1137 | 1137 | 'original_icon': None,
|
1138 |
| - 'original_name': 'Wind speed', |
| 1138 | + 'original_name': 'Wind speed (avg)', |
1139 | 1139 | 'platform': 'weatherflow_cloud',
|
1140 | 1140 | 'previous_unique_id': None,
|
1141 | 1141 | 'supported_features': 0,
|
|
1144 | 1144 | 'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
|
1145 | 1145 | })
|
1146 | 1146 | # ---
|
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] |
1148 | 1148 | StateSnapshot({
|
1149 | 1149 | 'attributes': ReadOnlyDict({
|
1150 | 1150 | 'attribution': 'Weather data delivered by WeatherFlow/Tempest API',
|
1151 | 1151 | 'device_class': 'wind_speed',
|
1152 |
| - 'friendly_name': 'My Home Station Wind speed', |
| 1152 | + 'friendly_name': 'My Home Station Wind speed (avg)', |
1153 | 1153 | 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
1154 | 1154 | 'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
|
1155 | 1155 | }),
|
1156 | 1156 | 'context': <ANY>,
|
1157 |
| - 'entity_id': 'sensor.my_home_station_wind_speed_2', |
| 1157 | + 'entity_id': 'sensor.my_home_station_wind_speed_avg', |
1158 | 1158 | 'last_changed': <ANY>,
|
1159 | 1159 | 'last_reported': <ANY>,
|
1160 | 1160 | 'last_updated': <ANY>,
|
|
0 commit comments