mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
Add optional dsmr timestamp sensor (#104979)
* Add optional timestamp sensor * Apply suggestions from code review Remove "timestamp" translation Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
@@ -78,6 +78,13 @@ class DSMRSensorEntityDescription(SensorEntityDescription):
|
||||
|
||||
|
||||
SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
||||
DSMRSensorEntityDescription(
|
||||
key="timestamp",
|
||||
obis_reference=obis_references.P1_MESSAGE_TIMESTAMP,
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
DSMRSensorEntityDescription(
|
||||
key="current_electricity_usage",
|
||||
translation_key="current_electricity_usage",
|
||||
|
Reference in New Issue
Block a user