461 lines
14 KiB
Plaintext
461 lines
14 KiB
Plaintext
# serializer version: 1
|
|
# name: test_all_entities[sensor.mock_title_lifetime_production_of_p1-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_lifetime_production_of_p1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
'original_icon': None,
|
|
'original_name': 'Lifetime production of P1',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'lifetime_production_p1',
|
|
'unique_id': 'MY_SERIAL_NUMBER_lifetime_production_p1',
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_lifetime_production_of_p1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'energy',
|
|
'friendly_name': 'Mock Title Lifetime production of P1',
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_lifetime_production_of_p1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '4.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_lifetime_production_of_p2-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_lifetime_production_of_p2',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
'original_icon': None,
|
|
'original_name': 'Lifetime production of P2',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'lifetime_production_p2',
|
|
'unique_id': 'MY_SERIAL_NUMBER_lifetime_production_p2',
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_lifetime_production_of_p2-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'energy',
|
|
'friendly_name': 'Mock Title Lifetime production of P2',
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_lifetime_production_of_p2',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '7.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_power_of_p1-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_power_of_p1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
|
|
'original_icon': None,
|
|
'original_name': 'Power of P1',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'total_power_p1',
|
|
'unique_id': 'MY_SERIAL_NUMBER_total_power_p1',
|
|
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_power_of_p1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'power',
|
|
'friendly_name': 'Mock Title Power of P1',
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_power_of_p1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '2.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_power_of_p2-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_power_of_p2',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
|
|
'original_icon': None,
|
|
'original_name': 'Power of P2',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'total_power_p2',
|
|
'unique_id': 'MY_SERIAL_NUMBER_total_power_p2',
|
|
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_power_of_p2-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'power',
|
|
'friendly_name': 'Mock Title Power of P2',
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_power_of_p2',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '5.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_production_of_today-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_production_of_today',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
'original_icon': None,
|
|
'original_name': 'Production of today',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'today_production',
|
|
'unique_id': 'MY_SERIAL_NUMBER_today_production',
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_production_of_today-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'energy',
|
|
'friendly_name': 'Mock Title Production of today',
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_production_of_today',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '9.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_production_of_today_from_p1-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_production_of_today_from_p1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
'original_icon': None,
|
|
'original_name': 'Production of today from P1',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'today_production_p1',
|
|
'unique_id': 'MY_SERIAL_NUMBER_today_production_p1',
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_production_of_today_from_p1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'energy',
|
|
'friendly_name': 'Mock Title Production of today from P1',
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_production_of_today_from_p1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '3.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_production_of_today_from_p2-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_production_of_today_from_p2',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
'original_icon': None,
|
|
'original_name': 'Production of today from P2',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'today_production_p2',
|
|
'unique_id': 'MY_SERIAL_NUMBER_today_production_p2',
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_production_of_today_from_p2-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'energy',
|
|
'friendly_name': 'Mock Title Production of today from P2',
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_production_of_today_from_p2',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '6.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_total_lifetime_production-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_total_lifetime_production',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
'original_icon': None,
|
|
'original_name': 'Total lifetime production',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'lifetime_production',
|
|
'unique_id': 'MY_SERIAL_NUMBER_lifetime_production',
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_total_lifetime_production-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'energy',
|
|
'friendly_name': 'Mock Title Total lifetime production',
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_total_lifetime_production',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '11.0',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_total_power-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.mock_title_total_power',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
|
|
'original_icon': None,
|
|
'original_name': 'Total power',
|
|
'platform': 'apsystems',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'total_power',
|
|
'unique_id': 'MY_SERIAL_NUMBER_total_power',
|
|
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[sensor.mock_title_total_power-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'power',
|
|
'friendly_name': 'Mock Title Total power',
|
|
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
|
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.mock_title_total_power',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '7.0',
|
|
})
|
|
# ---
|