mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add icon translations to derivative (#109650)
This commit is contained in:
parent
c3690e74c5
commit
0b3ed92a6e
9
homeassistant/components/derivative/icons.json
Normal file
9
homeassistant/components/derivative/icons.json
Normal file
@ -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__(
|
||||
|
Loading…
x
Reference in New Issue
Block a user