mirror of
https://github.com/home-assistant/core.git
synced 2025-06-19 12:37:06 +00:00
Use the speedometer icon in the fastdotcom sensor (#12348)
This change makes the icon match the one used in the speedtest sensor.
This commit is contained in:
parent
52f57b755e
commit
2d77a2bb39
@ -26,6 +26,8 @@ CONF_HOUR = 'hour'
|
|||||||
CONF_DAY = 'day'
|
CONF_DAY = 'day'
|
||||||
CONF_MANUAL = 'manual'
|
CONF_MANUAL = 'manual'
|
||||||
|
|
||||||
|
ICON = 'mdi:speedometer'
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
vol.Optional(CONF_SECOND, default=[0]):
|
vol.Optional(CONF_SECOND, default=[0]):
|
||||||
vol.All(cv.ensure_list, [vol.All(vol.Coerce(int), vol.Range(0, 59))]),
|
vol.All(cv.ensure_list, [vol.All(vol.Coerce(int), vol.Range(0, 59))]),
|
||||||
@ -94,6 +96,11 @@ class SpeedtestSensor(Entity):
|
|||||||
return
|
return
|
||||||
self._state = state.state
|
self._state = state.state
|
||||||
|
|
||||||
|
@property
|
||||||
|
def icon(self):
|
||||||
|
"""Return icon."""
|
||||||
|
return ICON
|
||||||
|
|
||||||
|
|
||||||
class SpeedtestData(object):
|
class SpeedtestData(object):
|
||||||
"""Get the latest data from fast.com."""
|
"""Get the latest data from fast.com."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user