home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.4k stars 30.65k forks source link

Meater integration error #71354

Closed tbaumann closed 2 years ago

tbaumann commented 2 years ago

The problem

Hi,

I just enabled the Meater integration. I am pretty sure I got the credentials right. But I get no entities.

When reloading the integration I get this trace

Logger: homeassistant
Source: components/meater/sensor.py:155
First occurred: 17:43:05 (1 occurrences)
Last logged: 17:43:05

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 137, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 270, in _async_refresh
    update_callback()
  File "/usr/src/homeassistant/homeassistant/components/meater/sensor.py", line 155, in async_update_data
    if dev.id in known_probes:
AttributeError: 'str' object has no attribute 'id'

What version of Home Assistant Core has the issue?

core-2022.5.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Meater

Link to integration documentation on our website

https://www.home-assistant.io/integrations/meater

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant
Source: components/meater/sensor.py:155
First occurred: 17:43:05 (1 occurrences)
Last logged: 17:43:05

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 137, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 270, in _async_refresh
    update_callback()
  File "/usr/src/homeassistant/homeassistant/components/meater/sensor.py", line 155, in async_update_data
    if dev.id in known_probes:
AttributeError: 'str' object has no attribute 'id'

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

meater documentation meater source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @sotolotl, @emontnemery, mind taking a look at this issue as it has been labeled with an integration (meater) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

thecode commented 2 years ago

Fixed in https://github.com/home-assistant/core/pull/71324, will be on the 2022.5.1 patch release.

tbaumann commented 2 years ago

Thanks, closing