mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
volvooncall: fix missing property. see vehicle when discovered. (#6144)
This commit is contained in:
parent
aee8758fc1
commit
65ed85c6eb
@ -31,5 +31,6 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
|||||||
vehicle.position['longitude']))
|
vehicle.position['longitude']))
|
||||||
|
|
||||||
hass.data[DOMAIN].entities[vin].append(see_vehicle)
|
hass.data[DOMAIN].entities[vin].append(see_vehicle)
|
||||||
|
see_vehicle(vehicle)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
@ -42,6 +42,7 @@ class VolvoSwitch(VolvoEntity, ToggleEntity):
|
|||||||
"""Return the name of the switch."""
|
"""Return the name of the switch."""
|
||||||
return 'Heater'
|
return 'Heater'
|
||||||
|
|
||||||
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
"""Return the icon."""
|
"""Return the icon."""
|
||||||
return 'mdi:radiator'
|
return 'mdi:radiator'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user