mirror of
https://github.com/elisspace/core.git
synced 2026-10-01 23:10:05 +00:00
Add device info to Nextcloud integration (#90328)
* add device_info * use entry_id as identifier + device name * use shorthand attributes * remove model from device info Co-authored-by: Franck Nijhof <frenck@frenck.nl> --------- Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
@@ -25,7 +25,7 @@ async def async_setup_entry(
|
||||
coordinator: NextcloudDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id]
|
||||
async_add_entities(
|
||||
[
|
||||
NextcloudBinarySensor(coordinator, name)
|
||||
NextcloudBinarySensor(coordinator, name, entry)
|
||||
for name in coordinator.data
|
||||
if name in BINARY_SENSORS
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user