|
|
|
@@ -512,6 +512,110 @@
|
|
|
|
|
'state': '9.7412109375',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_restart_count-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': dict({
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_restart_count',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Restart count',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': None,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Restart count',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_restart_count',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_dashy_dashy.1.qgza68hnz4n1qvyz3iohynx05_container_restart_count',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_restart_count-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'dashy_dashy.1.qgza68hnz4n1qvyz3iohynx05 Restart count',
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_restart_count',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_started-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': None,
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_started',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Started',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Started',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_started_at',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_dashy_dashy.1.qgza68hnz4n1qvyz3iohynx05_container_started_at',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_started-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'dashy_dashy.1.qgza68hnz4n1qvyz3iohynx05 Started',
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_started',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '2020-01-06T09:06:59+00:00',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.dashy_dashy_1_qgza68hnz4n1qvyz3iohynx05_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
@@ -1103,6 +1207,110 @@
|
|
|
|
|
'state': '9.7412109375',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.focused_einstein_restart_count-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': dict({
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.focused_einstein_restart_count',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Restart count',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': None,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Restart count',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_restart_count',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_focused_einstein_container_restart_count',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.focused_einstein_restart_count-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'focused_einstein Restart count',
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.focused_einstein_restart_count',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.focused_einstein_started-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': None,
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.focused_einstein_started',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Started',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Started',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_started_at',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_focused_einstein_container_started_at',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.focused_einstein_started-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'focused_einstein Started',
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.focused_einstein_started',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '2020-01-06T09:06:59+00:00',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.focused_einstein_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
@@ -1521,6 +1729,110 @@
|
|
|
|
|
'state': '9.7412109375',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.funny_chatelet_restart_count-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': dict({
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.funny_chatelet_restart_count',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Restart count',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': None,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Restart count',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_restart_count',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_funny_chatelet_container_restart_count',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.funny_chatelet_restart_count-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'funny_chatelet Restart count',
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.funny_chatelet_restart_count',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.funny_chatelet_started-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': None,
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.funny_chatelet_started',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Started',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Started',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_started_at',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_funny_chatelet_container_started_at',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.funny_chatelet_started-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'funny_chatelet Started',
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.funny_chatelet_started',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '2020-01-06T09:06:59+00:00',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.funny_chatelet_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
@@ -3034,6 +3346,110 @@
|
|
|
|
|
'state': '9.7412109375',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.practical_morse_restart_count-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': dict({
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.practical_morse_restart_count',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Restart count',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': None,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Restart count',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_restart_count',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_practical_morse_container_restart_count',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.practical_morse_restart_count-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'practical_morse Restart count',
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.practical_morse_restart_count',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.practical_morse_started-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': None,
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.practical_morse_started',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Started',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Started',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_started_at',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_practical_morse_container_started_at',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.practical_morse_started-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'practical_morse Started',
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.practical_morse_started',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '2020-01-06T09:06:59+00:00',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.practical_morse_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
@@ -3553,6 +3969,110 @@
|
|
|
|
|
'state': '9.7412109375',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.serene_banach_restart_count-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': dict({
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.serene_banach_restart_count',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Restart count',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': None,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Restart count',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_restart_count',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_serene_banach_container_restart_count',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.serene_banach_restart_count-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'serene_banach Restart count',
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.serene_banach_restart_count',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.serene_banach_started-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': None,
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.serene_banach_started',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Started',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Started',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_started_at',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_serene_banach_container_started_at',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.serene_banach_started-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'serene_banach Started',
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.serene_banach_started',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '2020-01-06T09:06:59+00:00',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.serene_banach_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
@@ -4072,6 +4592,110 @@
|
|
|
|
|
'state': '9.7412109375',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.stoic_turing_restart_count-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': dict({
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.stoic_turing_restart_count',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Restart count',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': None,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Restart count',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_restart_count',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_stoic_turing_container_restart_count',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.stoic_turing_restart_count-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'stoic_turing Restart count',
|
|
|
|
|
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.stoic_turing_restart_count',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '0',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.stoic_turing_started-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|
None,
|
|
|
|
|
]),
|
|
|
|
|
'area_id': None,
|
|
|
|
|
'capabilities': None,
|
|
|
|
|
'config_entry_id': <ANY>,
|
|
|
|
|
'config_subentry_id': <ANY>,
|
|
|
|
|
'device_class': None,
|
|
|
|
|
'device_id': <ANY>,
|
|
|
|
|
'disabled_by': None,
|
|
|
|
|
'domain': 'sensor',
|
|
|
|
|
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
|
|
|
|
'entity_id': 'sensor.stoic_turing_started',
|
|
|
|
|
'has_entity_name': True,
|
|
|
|
|
'hidden_by': None,
|
|
|
|
|
'icon': None,
|
|
|
|
|
'id': <ANY>,
|
|
|
|
|
'labels': set({
|
|
|
|
|
}),
|
|
|
|
|
'name': None,
|
|
|
|
|
'object_id_base': 'Started',
|
|
|
|
|
'options': dict({
|
|
|
|
|
}),
|
|
|
|
|
'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>,
|
|
|
|
|
'original_icon': None,
|
|
|
|
|
'original_name': 'Started',
|
|
|
|
|
'platform': 'portainer',
|
|
|
|
|
'previous_unique_id': None,
|
|
|
|
|
'suggested_object_id': None,
|
|
|
|
|
'supported_features': 0,
|
|
|
|
|
'translation_key': 'container_started_at',
|
|
|
|
|
'unique_id': 'portainer_test_entry_123_stoic_turing_container_started_at',
|
|
|
|
|
'unit_of_measurement': None,
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.stoic_turing_started-state]
|
|
|
|
|
StateSnapshot({
|
|
|
|
|
'attributes': ReadOnlyDict({
|
|
|
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
|
|
|
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'stoic_turing Started',
|
|
|
|
|
}),
|
|
|
|
|
'context': <ANY>,
|
|
|
|
|
'entity_id': 'sensor.stoic_turing_started',
|
|
|
|
|
'last_changed': <ANY>,
|
|
|
|
|
'last_reported': <ANY>,
|
|
|
|
|
'last_updated': <ANY>,
|
|
|
|
|
'state': '2020-01-06T09:06:59+00:00',
|
|
|
|
|
})
|
|
|
|
|
# ---
|
|
|
|
|
# name: test_all_entities[sensor.stoic_turing_state-entry]
|
|
|
|
|
EntityRegistryEntrySnapshot({
|
|
|
|
|
'aliases': list([
|
|
|
|
|