volvooncall: fix missing property. see vehicle when discovered. (#6144)

pull/6158/head
Erik Eriksson 2017-02-22 09:24:42 +01:00 committed by Paulus Schoutsen
parent aee8758fc1
commit 65ed85c6eb
2 changed files with 2 additions and 0 deletions

View File

@ -31,5 +31,6 @@ def setup_scanner(hass, config, see, discovery_info=None):
vehicle.position['longitude']))
hass.data[DOMAIN].entities[vin].append(see_vehicle)
see_vehicle(vehicle)
return True

View File

@ -42,6 +42,7 @@ class VolvoSwitch(VolvoEntity, ToggleEntity):
"""Return the name of the switch."""
return 'Heater'
@property
def icon(self):
"""Return the icon."""
return 'mdi:radiator'