Skip to content

Commit

Permalink
Set device name
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Feb 20, 2024
1 parent 795b8fe commit ddae08c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/knmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
)

device_info = DeviceInfo(
configuration_url=API_CONF_URL,
entry_type=DeviceEntryType.SERVICE,
identifiers={(DOMAIN, entry.entry_id)},
model=NAME,
manufacturer=SUPPLIER,
name=NAME,
sw_version=VERSION,
configuration_url=API_CONF_URL,
)

hass.data[DOMAIN][entry.entry_id] = coordinator = KnmiDataUpdateCoordinator(
Expand Down

0 comments on commit ddae08c

Please sign in to comment.