From 65ed85c6ebeb6f1608ab6b85e46fd71370511253 Mon Sep 17 00:00:00 2001 From: Erik Eriksson Date: Wed, 22 Feb 2017 09:24:42 +0100 Subject: [PATCH] volvooncall: fix missing property. see vehicle when discovered. (#6144) --- homeassistant/components/device_tracker/volvooncall.py | 1 + homeassistant/components/switch/volvooncall.py | 1 + 2 files changed, 2 insertions(+) diff --git a/homeassistant/components/device_tracker/volvooncall.py b/homeassistant/components/device_tracker/volvooncall.py index 3212d74cf7c..2f2d4001320 100644 --- a/homeassistant/components/device_tracker/volvooncall.py +++ b/homeassistant/components/device_tracker/volvooncall.py @@ -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 diff --git a/homeassistant/components/switch/volvooncall.py b/homeassistant/components/switch/volvooncall.py index a13f8780741..c89f27cc37a 100644 --- a/homeassistant/components/switch/volvooncall.py +++ b/homeassistant/components/switch/volvooncall.py @@ -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'