Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem z dłuższymi opisami #7

Closed
ryrzy opened this issue Dec 2, 2020 · 4 comments · Fixed by #14
Closed

Problem z dłuższymi opisami #7

ryrzy opened this issue Dec 2, 2020 · 4 comments · Fixed by #14
Assignees

Comments

@ryrzy
Copy link

ryrzy commented Dec 2, 2020

Wygląda na to, że jest problem z dłuższymi opisami jakości powietrza (chyba, że to jakiś problem z bazą u mnie?)

Logger: homeassistant.components.sensor
Source: core.py:871
Integration: Sensor (documentation, issues)
First occurred: 1 grudnia 2020, 21:13:39 (2 occurrences)
Last logged: 1 grudnia 2020, 21:13:39

Error adding entities for domain sensor with platform looko2
Error while setting up looko2 platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 408, in _async_write_ha_state
    self.hass.states.async_set(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1185, in async_set
    state = State(
  File "/usr/src/homeassistant/homeassistant/core.py", line 871, in __init__
    raise InvalidStateError(
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity id: sensor.looko2_xxx_1_ijpdescription. State max length is 255 characters.
@PiotrMachowski PiotrMachowski self-assigned this Dec 2, 2020
@PiotrMachowski
Copy link
Owner

Jakiej bazy używasz?

@ryrzy
Copy link
Author

ryrzy commented Dec 2, 2020

MariaDB

@ryrzy
Copy link
Author

ryrzy commented Dec 13, 2020

;>

@PiotrMachowski
Copy link
Owner

Fixed in v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants