Skip to content

Statistics Graphs card stuck on "Loading statistics..." #98736

Description

@timoschwarzer

The problem

I recently added a Statistics Graph card to my dashboard. Unfortunately, it is stuck on "Loading statistics..." since then and the same error message as described in #89489 appears in the log every time I have the dashboard open.

What version of Home Assistant Core has the issue?

core-2023.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

type: vertical-stack
cards:
  - type: entity
    entity: sensor.power_meter_total
    name: Power
  - chart_type: line
    period: hour
    type: statistics-graph
    entities:
      - sensor.power_meter_total
    hide_legend: true
    stat_types:
      - sum
      - state
    days_to_show: 30

Anything in the logs that might be useful for us?

homeassistant-homeassistant-1  | 2023-08-21 08:53:47.552 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140152766191936] Error handling message: Unknown error (unknown_error) [redacted] from [redacted] (Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36)
homeassistant-homeassistant-1  | Traceback (most recent call last):
homeassistant-homeassistant-1  |   File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 206, in async_handle
homeassistant-homeassistant-1  |     handler(self.hass, self, schema(msg))
homeassistant-homeassistant-1  |                              ^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272, in __call__
homeassistant-homeassistant-1  |     return self._compiled([], data)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
homeassistant-homeassistant-1  |     return base_validate(path, iteritems(data), out)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 387, in validate_mapping
homeassistant-homeassistant-1  |     cval = cvalue(key_path, value)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable
homeassistant-homeassistant-1  |     return schema(data)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272, in __call__
homeassistant-homeassistant-1  |     return self._compiled([], data)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
homeassistant-homeassistant-1  |     return base_validate(path, iteritems(data), out)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 387, in validate_mapping
homeassistant-homeassistant-1  |     cval = cvalue(key_path, value)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable
homeassistant-homeassistant-1  |     return schema(data)
homeassistant-homeassistant-1  |            ^^^^^^^^^^^^
homeassistant-homeassistant-1  |   File "/usr/local/lib/python3.11/site-packages/voluptuous/validators.py", line 755, in __call__
homeassistant-homeassistant-1  |     or 'value must be one of {}'.format(sorted(self.container)))
homeassistant-homeassistant-1  |                                         ^^^^^^^^^^^^^^^^^^^^^^
homeassistant-homeassistant-1  | TypeError: '<' not supported between instances of 'str' and 'NoneType'

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions