mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 20:04:35 +02:00
Add icon translations to derivative (#109650)
This commit is contained in:
committed by
Franck Nijhof
parent
e2695ba88f
commit
ce29b4a7e3
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"derivative": {
|
||||
"default": "mdi:chart-line"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -64,8 +64,6 @@ UNIT_TIME = {
|
||||
UnitOfTime.DAYS: 24 * 60 * 60,
|
||||
}
|
||||
|
||||
ICON = "mdi:chart-line"
|
||||
|
||||
DEFAULT_ROUND = 3
|
||||
DEFAULT_TIME_WINDOW = 0
|
||||
|
||||
@@ -157,9 +155,9 @@ async def async_setup_platform(
|
||||
|
||||
|
||||
class DerivativeSensor(RestoreSensor, SensorEntity):
|
||||
"""Representation of an derivative sensor."""
|
||||
"""Representation of a derivative sensor."""
|
||||
|
||||
_attr_icon = ICON
|
||||
_attr_translation_key = "derivative"
|
||||
_attr_should_poll = False
|
||||
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user