Resolves #70 Build default_view automatically

This commit is contained in:
estevez
2018-09-28 13:33:15 +03:00
parent b935a0e372
commit af3a5bc611
4 changed files with 68 additions and 14 deletions

View File

@ -2868,7 +2868,10 @@ class MaterialDesignIcons {
"mdi:blank": 0xf68c
};
static Widget createIconFromEntityData(Entity data, double size, Color color) {
static Widget createIconWidgetFromEntityData(Entity data, double size, Color color) {
if (data == null) {
return null;
}
if (data.entityPicture != null) {
if (homeAssistantWebHost != null) {
return CircleAvatar(