Issues with Configure UI

I would like to switch over to Lovelace and use the front-end editor but somehow I reverie errors while I will edit a card.

I’m running on the latest version of Home Assistant and the following error will appear:

Error handling message: {'type': 'lovelace/config/card/get', 'card_id': 11, 'id': 17}
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/connection.py", line 65, in async_handle
    handler(self.hass, self, schema(msg))
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: expected str for dictionary value @ data['card_id']

ui-lovelace.yaml

Title: My Awesome Home
views:
  - title: main
    id: 10
    icon: mdi:home
    theme: LightTheme
    cards:
      - type: glance
        id: 11
        title: Glance card sample
        entities:
        - light.bijkeuken
  - title: Test
    id: 20
    icon: mdi:home
    theme: LightTheme
    cards:
      - type: glance
        id: 22
        title: Glance card sample
        entities:
        - binary_sensor.gang_bewegingsmelder

I think if using only numbers as id they schould be quoted.
id: '22'

1 Like