kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.53k stars 207 forks source link

Idle_view code block resetting when editing via UI #468

Closed agneevX closed 3 years ago

agneevX commented 3 years ago

With v0.12.0, idle_view code keeps getting reset to idle_view: '[object Object]' when editing from UI.

OverZealous commented 3 years ago

To add to this, I have idle_view set to this:

idle_view:
  when_idle: true
  when_standby: true

Looks like the idle_view property in the UI editor is expecting a simple string, rather than nested options. This wouldn't be an issue, except the Lovelace editor defaults to the UI editor even with this "incorrect" value.

agneevX commented 3 years ago

Yeah I'm not sure why idle view was added to the UI.

kalkih commented 3 years ago

Removed it for now, needs a more advanced config UI if we want to add it back in the future.