mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Small cleanup in Dexcom (#112425)
This commit is contained in:
committed by
GitHub
parent
5dea902a9c
commit
ed23bb7c04
@@ -12,7 +12,7 @@ from homeassistant.helpers.update_coordinator import (
|
||||
DataUpdateCoordinator,
|
||||
)
|
||||
|
||||
from .const import COORDINATOR, DOMAIN, GLUCOSE_TREND_ICON, MG_DL
|
||||
from .const import DOMAIN, GLUCOSE_TREND_ICON, MG_DL
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
@@ -21,7 +21,7 @@ async def async_setup_entry(
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the Dexcom sensors."""
|
||||
coordinator = hass.data[DOMAIN][config_entry.entry_id][COORDINATOR]
|
||||
coordinator = hass.data[DOMAIN][config_entry.entry_id]
|
||||
username = config_entry.data[CONF_USERNAME]
|
||||
unit_of_measurement = config_entry.options[CONF_UNIT_OF_MEASUREMENT]
|
||||
async_add_entities(
|
||||
@@ -31,7 +31,6 @@ async def async_setup_entry(
|
||||
coordinator, username, config_entry.entry_id, unit_of_measurement
|
||||
),
|
||||
],
|
||||
False,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user