gillesvs / librelink

Librelink integration for Home Assistant
MIT License
21 stars 6 forks source link

Error While setting up sensor #7

Closed graywizardx closed 6 months ago

graywizardx commented 6 months ago

I get the below error when I try and install the device for the first time.

I have verified that I can see the data in LibreLinkUp and online as well.

I have several other errors about retrieving the data, but they are all roughly the NoneType exception.

` Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:352 Integration: Sensor (documentation, issues) First occurred: 6:22:41 PM (2 occurrences) Last logged: 6:31:13 PM

Error while setting up librelink platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 352, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 698, in _async_add_entity original_icon=entity.icon, ^^^^^^^^^^^ File "/config/custom_components/librelink/sensor.py", line 199, in icon self.coordinator.data[self.index]["glucoseMeasurement"][ TypeError: 'NoneType' object is not subscriptable `

gillesvs commented 6 months ago

Hello @graywizardx ,

Can you activate the debug mode for the integration and send me the log file? Thanks

gillesvs commented 6 months ago

See #10