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:
Dougal Matthews 2018-02-12 19:15:10 +00:00 committed by Paulus Schoutsen
parent 52f57b755e
commit 2d77a2bb39

View file

@ -26,6 +26,8 @@ CONF_HOUR = 'hour'
CONF_DAY = 'day'
CONF_MANUAL = 'manual'
ICON = 'mdi:speedometer'
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Optional(CONF_SECOND, default=[0]):
vol.All(cv.ensure_list, [vol.All(vol.Coerce(int), vol.Range(0, 59))]),
@ -94,6 +96,11 @@ class SpeedtestSensor(Entity):
return
self._state = state.state
@property
def icon(self):
"""Return icon."""
return ICON
class SpeedtestData(object):
"""Get the latest data from fast.com."""