1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 00:05:43 +00:00

Device description in dashboard (#707)

* Description

* Review fixes

* Test

* Label

* Description renamed to comment
This commit is contained in:
Nikolay Vasilchuk
2019-10-14 12:27:07 +03:00
committed by Otto Winter
parent 0eadda77b0
commit be91cfb261
8 changed files with 40 additions and 5 deletions

View File

@@ -401,6 +401,12 @@ class DashboardEntry(object):
return self.filename[:-len('.yaml')]
return self.storage.name
@property
def comment(self):
if self.storage is None:
return None
return self.storage.comment
@property
def esp_platform(self):
if self.storage is None: