Skip to content

Commit

Permalink
Fix typo that overwrites active insulin data (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
timvermeulen authored Feb 8, 2023
1 parent 3fcf8af commit 78a6bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/carelink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ async def _async_update_data(self):
data[SENSOR_KEY_LAST_ALARM] = date_time_local.replace(tzinfo=timezone)
data[SENSOR_KEY_LAST_ALARM_ATTRS] = last_alarm
else:
data[SENSOR_KEY_ACTIVE_INSULIN] = None
data[SENSOR_KEY_ACTIVE_INSULIN_ATTRS] = {}
data[SENSOR_KEY_LAST_ALARM] = None
data[SENSOR_KEY_LAST_ALARM_ATTRS] = {}

if (
recent_data["basal"] is not None
Expand Down

0 comments on commit 78a6bc2

Please sign in to comment.