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

Error creating sensors #26

Open
QGgWW2WhH opened this issue Nov 27, 2021 · 2 comments
Open

Error creating sensors #26

QGgWW2WhH opened this issue Nov 27, 2021 · 2 comments

Comments

@QGgWW2WhH
Copy link

Version of the custom_component

Version
2c953a3

Configuration

Add your logs here.

login detail + 60 as configuration, no yaml configured

Describe the bug

When booting, there is this error in the log file:

Logger: homeassistant.components.sensor
Source: custom_components/vienna_smartmeter/sensor.py:85
Integration: Sensor (documentation, issues)
First occurred: 21:02:23 (4 occurrences)
Last logged: 21:03:29

Error adding entities for domain sensor with platform vienna_smartmeter
Error while setting up vienna_smartmeter platform for sensor

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 442, in _async_add_entity
if entity.unique_id is not None:
File "/config/custom_components/vienna_smartmeter/sensor.py", line 85, in unique_id
meter_id = {self.coordinator.data["zaehlpunkt"]["zaehlpunktnummer"]}
TypeError: 'NoneType' object is not subscriptable

@platysma
Copy link
Owner

platysma commented Dec 2, 2021

This might be linked to the recently introduced log.wien authentication method platysma/vienna-smartmeter#55.

@splagemann
Copy link

There was recently a new commit that fixed the API. There is no new version yet, but I fixed it in the meantime by changing the requirements in the manifest to
"requirements": ["git+https://github.com/platysma/vienna-smartmeter.git@main#vienna-smartmeter==0.3.3"],

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

No branches or pull requests

3 participants