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

Integration not working after HA update to 2022.8.0b4 #36

Closed
zuppl opened this issue Aug 1, 2022 · 3 comments
Closed

Integration not working after HA update to 2022.8.0b4 #36

zuppl opened this issue Aug 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@zuppl
Copy link

zuppl commented Aug 1, 2022

After upgrading to 2022.8.0b4 no values are returned.

@syssi
Copy link
Collaborator

syssi commented Aug 1, 2022

Do you see any errors at the Home Assistant log?

@syssi syssi added the bug Something isn't working label Aug 1, 2022
@zuppl
Copy link
Author

zuppl commented Aug 1, 2022

Logger: homeassistant.components.sensor
Source: custom_components/niu/sensor.py:436
Integration: Sensor (documentation, issues)
First occurred: 14:10:28 (1 occurrences)
Last logged: 14:10:28

Error while setting up niu platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/niu/sensor.py", line 392, in setup_platform
NiuSensor(
File "/config/custom_components/niu/sensor.py", line 503, in init
self._state = self._data_bridge.dataTrack(self._id_name)
File "/config/custom_components/niu/sensor.py", line 436, in dataTrack
(self._dataTrackInfo["data"][0][id_field]) / 1000
TypeError: 'bool' object is not subscriptable

@syssi
Copy link
Collaborator

syssi commented Aug 1, 2022

Let's discuss the issue here: #37

Duplicate: ##37

@syssi syssi closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants