From 6845a0974d7708c97ef09474cc8277e5c5362868 Mon Sep 17 00:00:00 2001 From: sander76 Date: Tue, 10 Jan 2017 13:21:15 +0100 Subject: [PATCH] adding a default icon "blind" to a PowerView blinds scene. (#5210) * adding a default icon "blind" to a PowerView blinds scene. * Adding icon property to define blind icon. Removed it from the state attributes dict. * fixing lint error --- homeassistant/components/scene/hunterdouglas_powerview.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/scene/hunterdouglas_powerview.py b/homeassistant/components/scene/hunterdouglas_powerview.py index 0ae44d878f8..c831876bf11 100644 --- a/homeassistant/components/scene/hunterdouglas_powerview.py +++ b/homeassistant/components/scene/hunterdouglas_powerview.py @@ -70,6 +70,11 @@ class PowerViewScene(Scene): """Return the state attributes.""" return {"roomName": self.scene_data["roomName"]} + @property + def icon(self): + """Icon to use in the frontend.""" + return 'mdi:blinds' + def activate(self): """Activate the scene. Tries to get entities into requested state.""" self.pv_instance.activate_scene(self.scene_data["id"])