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

fix: catch missing dateTime KeyError #32

Merged
merged 1 commit into from
Jun 13, 2023
Merged

fix: catch missing dateTime KeyError #32

merged 1 commit into from
Jun 13, 2023

Conversation

yo-han
Copy link
Owner

@yo-han yo-han commented Jun 13, 2023

Catch and log missing keys and indicies in the get_last_marker function.

fixes #31

@yo-han yo-han merged commit 048e657 into develop Jun 13, 2023
@redakker
Copy link

@yo-han , Thank you for the quick fix, but comes another:

Logger: custom_components.carelink
Source: custom_components/carelink/init.py:383
Integration: carelink
First occurred: 08:23:14 (3 occurrences)
Last logged: 08:23:40

Unexpected error fetching carelink data: 'medicalDeviceInformation'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/carelink/init.py", line 383, in _async_update_data
data[SENSOR_KEY_MEDICAL_DEVICE_MANUFACTURER] = recent_data[
KeyError: 'medicalDeviceInformation'

@yo-han yo-han deleted the fix-meal-markers branch June 16, 2023 18:17
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 this pull request may close these issues.

Retrying setup: 'dateTime'
2 participants