269 lines
7.2 KiB
Plaintext
269 lines
7.2 KiB
Plaintext
# serializer version: 1
|
|
# name: test_sensors[sensor.ohme_home_pro_ct_current-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': None,
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.ohme_home_pro_ct_current',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
'original_icon': None,
|
|
'original_name': 'CT current',
|
|
'platform': 'ohme',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'ct_current',
|
|
'unique_id': 'chargerid_ct_current',
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_ct_current-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'current',
|
|
'friendly_name': 'Ohme Home Pro CT current',
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.ohme_home_pro_ct_current',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '0',
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_current-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': None,
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.ohme_home_pro_current',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.CURRENT: 'current'>,
|
|
'original_icon': None,
|
|
'original_name': 'Current',
|
|
'platform': 'ohme',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'chargerid_current',
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_current-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'current',
|
|
'friendly_name': 'Ohme Home Pro Current',
|
|
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.ohme_home_pro_current',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '0',
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_energy-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.ohme_home_pro_energy',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
'sensor': dict({
|
|
'suggested_display_precision': 1,
|
|
}),
|
|
'sensor.private': dict({
|
|
'suggested_unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
|
|
'original_icon': None,
|
|
'original_name': 'Energy',
|
|
'platform': 'ohme',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'chargerid_energy',
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_energy-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'energy',
|
|
'friendly_name': 'Ohme Home Pro Energy',
|
|
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
|
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.ohme_home_pro_energy',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '1.0',
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_power-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': None,
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.ohme_home_pro_power',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
'sensor': dict({
|
|
'suggested_display_precision': 1,
|
|
}),
|
|
'sensor.private': dict({
|
|
'suggested_unit_of_measurement': <UnitOfPower.KILO_WATT: 'kW'>,
|
|
}),
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.POWER: 'power'>,
|
|
'original_icon': None,
|
|
'original_name': 'Power',
|
|
'platform': 'ohme',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'chargerid_power',
|
|
'unit_of_measurement': <UnitOfPower.KILO_WATT: 'kW'>,
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_power-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'power',
|
|
'friendly_name': 'Ohme Home Pro Power',
|
|
'unit_of_measurement': <UnitOfPower.KILO_WATT: 'kW'>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.ohme_home_pro_power',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '0.0',
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_status-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'options': list([
|
|
'unplugged',
|
|
'pending_approval',
|
|
'charging',
|
|
'plugged_in',
|
|
]),
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'sensor',
|
|
'entity_category': None,
|
|
'entity_id': 'sensor.ohme_home_pro_status',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SensorDeviceClass.ENUM: 'enum'>,
|
|
'original_icon': None,
|
|
'original_name': 'Status',
|
|
'platform': 'ohme',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'status',
|
|
'unique_id': 'chargerid_status',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_sensors[sensor.ohme_home_pro_status-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'enum',
|
|
'friendly_name': 'Ohme Home Pro Status',
|
|
'options': list([
|
|
'unplugged',
|
|
'pending_approval',
|
|
'charging',
|
|
'plugged_in',
|
|
]),
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.ohme_home_pro_status',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'charging',
|
|
})
|
|
# ---
|