Skip to content

Commit 1f9c06e

Browse files
authored
Align consumption sensor names in ViCare integration (#127888)
1 parent 711c448 commit 1f9c06e

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

homeassistant/components/vicare/strings.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -234,28 +234,40 @@
234234
"name": "DHW gas consumption last seven days"
235235
},
236236
"energy_summary_consumption_heating_currentday": {
237-
"name": "Heating energy consumption today"
237+
"name": "Heating electricity consumption today"
238238
},
239239
"energy_summary_consumption_heating_currentmonth": {
240-
"name": "Heating energy consumption this month"
240+
"name": "Heating electricity consumption this month"
241241
},
242242
"energy_summary_consumption_heating_currentyear": {
243-
"name": "Heating energy consumption this year"
243+
"name": "Heating electricity consumption this year"
244244
},
245245
"energy_summary_consumption_heating_lastsevendays": {
246-
"name": "Heating energy consumption last seven days"
246+
"name": "Heating electricity consumption last seven days"
247247
},
248248
"energy_dhw_summary_consumption_heating_currentday": {
249-
"name": "DHW energy consumption today"
249+
"name": "DHW electricity consumption today"
250250
},
251251
"energy_dhw_summary_consumption_heating_currentmonth": {
252-
"name": "DHW energy consumption this month"
252+
"name": "DHW electricity consumption this month"
253253
},
254254
"energy_dhw_summary_consumption_heating_currentyear": {
255-
"name": "DHW energy consumption this year"
255+
"name": "DHW electricity consumption this year"
256256
},
257257
"energy_summary_dhw_consumption_heating_lastsevendays": {
258-
"name": "DHW energy consumption last seven days"
258+
"name": "DHW electricity consumption last seven days"
259+
},
260+
"power_consumption_today": {
261+
"name": "Electricity consumption today"
262+
},
263+
"power_consumption_this_week": {
264+
"name": "Electricity consumption this week"
265+
},
266+
"power_consumption_this_month": {
267+
"name": "Electricity consumption this month"
268+
},
269+
"power_consumption_this_year": {
270+
"name": "Electricity consumption this year"
259271
},
260272
"power_production_current": {
261273
"name": "Power production current"
@@ -290,18 +302,6 @@
290302
"solar_power_production_this_year": {
291303
"name": "Solar energy production this year"
292304
},
293-
"power_consumption_today": {
294-
"name": "Energy consumption today"
295-
},
296-
"power_consumption_this_week": {
297-
"name": "Power consumption this week"
298-
},
299-
"power_consumption_this_month": {
300-
"name": "Energy consumption this month"
301-
},
302-
"power_consumption_this_year": {
303-
"name": "Energy consumption this year"
304-
},
305305
"buffer_top_temperature": {
306306
"name": "Buffer top temperature"
307307
},

tests/components/vicare/snapshots/test_sensor.ambr

+18-18
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
'state': '7.843',
549549
})
550550
# ---
551-
# name: test_all_entities[sensor.model0_energy_consumption_this_year-entry]
551+
# name: test_all_entities[sensor.model0_electricity_consumption_this_year-entry]
552552
EntityRegistryEntrySnapshot({
553553
'aliases': set({
554554
}),
@@ -562,7 +562,7 @@
562562
'disabled_by': None,
563563
'domain': 'sensor',
564564
'entity_category': None,
565-
'entity_id': 'sensor.model0_energy_consumption_this_year',
565+
'entity_id': 'sensor.model0_electricity_consumption_this_year',
566566
'has_entity_name': True,
567567
'hidden_by': None,
568568
'icon': None,
@@ -574,7 +574,7 @@
574574
}),
575575
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
576576
'original_icon': None,
577-
'original_name': 'Energy consumption this year',
577+
'original_name': 'Electricity consumption this year',
578578
'platform': 'vicare',
579579
'previous_unique_id': None,
580580
'supported_features': 0,
@@ -583,23 +583,23 @@
583583
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
584584
})
585585
# ---
586-
# name: test_all_entities[sensor.model0_energy_consumption_this_year-state]
586+
# name: test_all_entities[sensor.model0_electricity_consumption_this_year-state]
587587
StateSnapshot({
588588
'attributes': ReadOnlyDict({
589589
'device_class': 'energy',
590-
'friendly_name': 'model0 Energy consumption this year',
590+
'friendly_name': 'model0 Electricity consumption this year',
591591
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
592592
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
593593
}),
594594
'context': <ANY>,
595-
'entity_id': 'sensor.model0_energy_consumption_this_year',
595+
'entity_id': 'sensor.model0_electricity_consumption_this_year',
596596
'last_changed': <ANY>,
597597
'last_reported': <ANY>,
598598
'last_updated': <ANY>,
599599
'state': '207.106',
600600
})
601601
# ---
602-
# name: test_all_entities[sensor.model0_energy_consumption_today-entry]
602+
# name: test_all_entities[sensor.model0_electricity_consumption_today-entry]
603603
EntityRegistryEntrySnapshot({
604604
'aliases': set({
605605
}),
@@ -613,7 +613,7 @@
613613
'disabled_by': None,
614614
'domain': 'sensor',
615615
'entity_category': None,
616-
'entity_id': 'sensor.model0_energy_consumption_today',
616+
'entity_id': 'sensor.model0_electricity_consumption_today',
617617
'has_entity_name': True,
618618
'hidden_by': None,
619619
'icon': None,
@@ -625,7 +625,7 @@
625625
}),
626626
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
627627
'original_icon': None,
628-
'original_name': 'Energy consumption today',
628+
'original_name': 'Electricity consumption today',
629629
'platform': 'vicare',
630630
'previous_unique_id': None,
631631
'supported_features': 0,
@@ -634,16 +634,16 @@
634634
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
635635
})
636636
# ---
637-
# name: test_all_entities[sensor.model0_energy_consumption_today-state]
637+
# name: test_all_entities[sensor.model0_electricity_consumption_today-state]
638638
StateSnapshot({
639639
'attributes': ReadOnlyDict({
640640
'device_class': 'energy',
641-
'friendly_name': 'model0 Energy consumption today',
641+
'friendly_name': 'model0 Electricity consumption today',
642642
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
643643
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
644644
}),
645645
'context': <ANY>,
646-
'entity_id': 'sensor.model0_energy_consumption_today',
646+
'entity_id': 'sensor.model0_electricity_consumption_today',
647647
'last_changed': <ANY>,
648648
'last_reported': <ANY>,
649649
'last_updated': <ANY>,
@@ -897,7 +897,7 @@
897897
'state': '20.8',
898898
})
899899
# ---
900-
# name: test_all_entities[sensor.model0_power_consumption_this_week-entry]
900+
# name: test_all_entities[sensor.model0_electricity_consumption_this_week-entry]
901901
EntityRegistryEntrySnapshot({
902902
'aliases': set({
903903
}),
@@ -911,7 +911,7 @@
911911
'disabled_by': None,
912912
'domain': 'sensor',
913913
'entity_category': None,
914-
'entity_id': 'sensor.model0_power_consumption_this_week',
914+
'entity_id': 'sensor.model0_electricity_consumption_this_week',
915915
'has_entity_name': True,
916916
'hidden_by': None,
917917
'icon': None,
@@ -923,7 +923,7 @@
923923
}),
924924
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
925925
'original_icon': None,
926-
'original_name': 'Power consumption this week',
926+
'original_name': 'Electricity consumption this week',
927927
'platform': 'vicare',
928928
'previous_unique_id': None,
929929
'supported_features': 0,
@@ -932,16 +932,16 @@
932932
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
933933
})
934934
# ---
935-
# name: test_all_entities[sensor.model0_power_consumption_this_week-state]
935+
# name: test_all_entities[sensor.model0_electricity_consumption_this_week-state]
936936
StateSnapshot({
937937
'attributes': ReadOnlyDict({
938938
'device_class': 'energy',
939-
'friendly_name': 'model0 Power consumption this week',
939+
'friendly_name': 'model0 Electricity consumption this week',
940940
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
941941
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
942942
}),
943943
'context': <ANY>,
944-
'entity_id': 'sensor.model0_power_consumption_this_week',
944+
'entity_id': 'sensor.model0_electricity_consumption_this_week',
945945
'last_changed': <ANY>,
946946
'last_reported': <ANY>,
947947
'last_updated': <ANY>,

0 commit comments

Comments
 (0)