|
548 | 548 | 'state': '7.843',
|
549 | 549 | })
|
550 | 550 | # ---
|
551 |
| -# name: test_all_entities[sensor.model0_energy_consumption_this_year-entry] |
| 551 | +# name: test_all_entities[sensor.model0_electricity_consumption_this_year-entry] |
552 | 552 | EntityRegistryEntrySnapshot({
|
553 | 553 | 'aliases': set({
|
554 | 554 | }),
|
|
562 | 562 | 'disabled_by': None,
|
563 | 563 | 'domain': 'sensor',
|
564 | 564 | 'entity_category': None,
|
565 |
| - 'entity_id': 'sensor.model0_energy_consumption_this_year', |
| 565 | + 'entity_id': 'sensor.model0_electricity_consumption_this_year', |
566 | 566 | 'has_entity_name': True,
|
567 | 567 | 'hidden_by': None,
|
568 | 568 | 'icon': None,
|
|
574 | 574 | }),
|
575 | 575 | 'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
576 | 576 | 'original_icon': None,
|
577 |
| - 'original_name': 'Energy consumption this year', |
| 577 | + 'original_name': 'Electricity consumption this year', |
578 | 578 | 'platform': 'vicare',
|
579 | 579 | 'previous_unique_id': None,
|
580 | 580 | 'supported_features': 0,
|
|
583 | 583 | 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
584 | 584 | })
|
585 | 585 | # ---
|
586 |
| -# name: test_all_entities[sensor.model0_energy_consumption_this_year-state] |
| 586 | +# name: test_all_entities[sensor.model0_electricity_consumption_this_year-state] |
587 | 587 | StateSnapshot({
|
588 | 588 | 'attributes': ReadOnlyDict({
|
589 | 589 | 'device_class': 'energy',
|
590 |
| - 'friendly_name': 'model0 Energy consumption this year', |
| 590 | + 'friendly_name': 'model0 Electricity consumption this year', |
591 | 591 | 'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
592 | 592 | 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
593 | 593 | }),
|
594 | 594 | 'context': <ANY>,
|
595 |
| - 'entity_id': 'sensor.model0_energy_consumption_this_year', |
| 595 | + 'entity_id': 'sensor.model0_electricity_consumption_this_year', |
596 | 596 | 'last_changed': <ANY>,
|
597 | 597 | 'last_reported': <ANY>,
|
598 | 598 | 'last_updated': <ANY>,
|
599 | 599 | 'state': '207.106',
|
600 | 600 | })
|
601 | 601 | # ---
|
602 |
| -# name: test_all_entities[sensor.model0_energy_consumption_today-entry] |
| 602 | +# name: test_all_entities[sensor.model0_electricity_consumption_today-entry] |
603 | 603 | EntityRegistryEntrySnapshot({
|
604 | 604 | 'aliases': set({
|
605 | 605 | }),
|
|
613 | 613 | 'disabled_by': None,
|
614 | 614 | 'domain': 'sensor',
|
615 | 615 | 'entity_category': None,
|
616 |
| - 'entity_id': 'sensor.model0_energy_consumption_today', |
| 616 | + 'entity_id': 'sensor.model0_electricity_consumption_today', |
617 | 617 | 'has_entity_name': True,
|
618 | 618 | 'hidden_by': None,
|
619 | 619 | 'icon': None,
|
|
625 | 625 | }),
|
626 | 626 | 'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
627 | 627 | 'original_icon': None,
|
628 |
| - 'original_name': 'Energy consumption today', |
| 628 | + 'original_name': 'Electricity consumption today', |
629 | 629 | 'platform': 'vicare',
|
630 | 630 | 'previous_unique_id': None,
|
631 | 631 | 'supported_features': 0,
|
|
634 | 634 | 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
635 | 635 | })
|
636 | 636 | # ---
|
637 |
| -# name: test_all_entities[sensor.model0_energy_consumption_today-state] |
| 637 | +# name: test_all_entities[sensor.model0_electricity_consumption_today-state] |
638 | 638 | StateSnapshot({
|
639 | 639 | 'attributes': ReadOnlyDict({
|
640 | 640 | 'device_class': 'energy',
|
641 |
| - 'friendly_name': 'model0 Energy consumption today', |
| 641 | + 'friendly_name': 'model0 Electricity consumption today', |
642 | 642 | 'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
643 | 643 | 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
644 | 644 | }),
|
645 | 645 | 'context': <ANY>,
|
646 |
| - 'entity_id': 'sensor.model0_energy_consumption_today', |
| 646 | + 'entity_id': 'sensor.model0_electricity_consumption_today', |
647 | 647 | 'last_changed': <ANY>,
|
648 | 648 | 'last_reported': <ANY>,
|
649 | 649 | 'last_updated': <ANY>,
|
|
897 | 897 | 'state': '20.8',
|
898 | 898 | })
|
899 | 899 | # ---
|
900 |
| -# name: test_all_entities[sensor.model0_power_consumption_this_week-entry] |
| 900 | +# name: test_all_entities[sensor.model0_electricity_consumption_this_week-entry] |
901 | 901 | EntityRegistryEntrySnapshot({
|
902 | 902 | 'aliases': set({
|
903 | 903 | }),
|
|
911 | 911 | 'disabled_by': None,
|
912 | 912 | 'domain': 'sensor',
|
913 | 913 | 'entity_category': None,
|
914 |
| - 'entity_id': 'sensor.model0_power_consumption_this_week', |
| 914 | + 'entity_id': 'sensor.model0_electricity_consumption_this_week', |
915 | 915 | 'has_entity_name': True,
|
916 | 916 | 'hidden_by': None,
|
917 | 917 | 'icon': None,
|
|
923 | 923 | }),
|
924 | 924 | 'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
925 | 925 | 'original_icon': None,
|
926 |
| - 'original_name': 'Power consumption this week', |
| 926 | + 'original_name': 'Electricity consumption this week', |
927 | 927 | 'platform': 'vicare',
|
928 | 928 | 'previous_unique_id': None,
|
929 | 929 | 'supported_features': 0,
|
|
932 | 932 | 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
933 | 933 | })
|
934 | 934 | # ---
|
935 |
| -# name: test_all_entities[sensor.model0_power_consumption_this_week-state] |
| 935 | +# name: test_all_entities[sensor.model0_electricity_consumption_this_week-state] |
936 | 936 | StateSnapshot({
|
937 | 937 | 'attributes': ReadOnlyDict({
|
938 | 938 | 'device_class': 'energy',
|
939 |
| - 'friendly_name': 'model0 Power consumption this week', |
| 939 | + 'friendly_name': 'model0 Electricity consumption this week', |
940 | 940 | 'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
941 | 941 | 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
942 | 942 | }),
|
943 | 943 | 'context': <ANY>,
|
944 |
| - 'entity_id': 'sensor.model0_power_consumption_this_week', |
| 944 | + 'entity_id': 'sensor.model0_electricity_consumption_this_week', |
945 | 945 | 'last_changed': <ANY>,
|
946 | 946 | 'last_reported': <ANY>,
|
947 | 947 | 'last_updated': <ANY>,
|
|
0 commit comments