Add icon translations to Tedee (#112307)

* Add icon translations to Tedee

* Add icon translations to Tedee
pull/112374/head
Joost Lekkerkerker 2024-03-05 14:20:59 +01:00 committed by GitHub
parent 446314bb27
commit d3f28718ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"pullspring_duration": {
"default": "mdi:timer-lock-open"
}
}
}
}

View File

@ -42,7 +42,6 @@ ENTITIES: tuple[TedeeSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.DURATION,
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.MEASUREMENT,
icon="mdi:timer-lock-open",
value_fn=lambda lock: lock.duration_pullspring,
entity_category=EntityCategory.DIAGNOSTIC,
),

View File

@ -59,7 +59,7 @@
'options': dict({
}),
'original_device_class': <SensorDeviceClass.DURATION: 'duration'>,
'original_icon': 'mdi:timer-lock-open',
'original_icon': None,
'original_name': 'Pullspring duration',
'platform': 'tedee',
'previous_unique_id': None,
@ -89,7 +89,6 @@
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Lock-1A2B Pullspring duration',
'icon': 'mdi:timer-lock-open',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
}),