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 errorpull/5214/merge
parent
7e1629a962
commit
6845a0974d
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue