Link to device from browser mod panel

This commit is contained in:
2022-09-02 21:12:39 +00:00
parent e2f1dfdaf2
commit 98aaacba81
3 changed files with 29 additions and 6 deletions

View File

@@ -62,7 +62,9 @@ async def async_setup_connection(hass):
dev.update_settings(hass, store.get_browser(browserID).asdict())
dev.open_connection(connection, msg["id"])
await store.set_browser(
browserID, last_seen=datetime.now(tz=timezone.utc).isoformat()
browserID,
last_seen=datetime.now(tz=timezone.utc).isoformat(),
meta=dev.get_device_id(hass),
)
send_update(store.asdict())