HomeAssistant-Ohme icon indicating copy to clipboard operation
HomeAssistant-Ohme copied to clipboard

Max chars for Charge Slots

Open cydalby opened this issue 1 year ago • 3 comments

What happened? Charge slots has gone over the max chars allowed Invalid state with length 271. State max length is 255 characters

Log Output

Source: helpers/entity.py:1205
First occurred: 19:30:50 (198 occurrences)
Last logged: 21:08:59

Failed to set state for sensor.ohme_charge_slots, fall back to unknown
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1205, in _async_write_ha_state
    hass.states.async_set(
  File "/usr/src/homeassistant/homeassistant/core.py", line 2302, in async_set
    state = State(
            ^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1773, in __init__
    validate_state(state)
  File "/usr/src/homeassistant/homeassistant/core.py", line 239, in validate_state
    raise InvalidStateError(
homeassistant.exceptions.InvalidStateError: Invalid state with length 271. State max length is 255 characters.

Home Assistant Version 2024.7.1

Integration Version 1.0.0

cydalby avatar Jul 30 '24 20:07 cydalby