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
pull/5214/merge
sander76 2017-01-10 13:21:15 +01:00 committed by Paulus Schoutsen
parent 7e1629a962
commit 6845a0974d
1 changed files with 5 additions and 0 deletions

View File

@ -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"])