Add icon translations to Tedee (#112307)
* Add icon translations to Tedee * Add icon translations to Tedeepull/112374/head
parent
446314bb27
commit
d3f28718ec
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"pullspring_duration": {
|
||||
"default": "mdi:timer-lock-open"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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,
|
||||
),
|
||||
|
|
|
@ -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'>,
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue