mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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
This commit is contained in:
parent
7e1629a962
commit
6845a0974d
@ -70,6 +70,11 @@ class PowerViewScene(Scene):
|
|||||||
"""Return the state attributes."""
|
"""Return the state attributes."""
|
||||||
return {"roomName": self.scene_data["roomName"]}
|
return {"roomName": self.scene_data["roomName"]}
|
||||||
|
|
||||||
|
@property
|
||||||
|
def icon(self):
|
||||||
|
"""Icon to use in the frontend."""
|
||||||
|
return 'mdi:blinds'
|
||||||
|
|
||||||
def activate(self):
|
def activate(self):
|
||||||
"""Activate the scene. Tries to get entities into requested state."""
|
"""Activate the scene. Tries to get entities into requested state."""
|
||||||
self.pv_instance.activate_scene(self.scene_data["id"])
|
self.pv_instance.activate_scene(self.scene_data["id"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user