mirror of
https://github.com/home-assistant/core.git
synced 2026-07-06 22:36:33 +01:00
d766aae436
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
14 lines
355 B
Python
14 lines
355 B
Python
"""Helpers for zwave_me config flow."""
|
|
|
|
from zwave_me_ws import ZWaveMe
|
|
|
|
|
|
async def get_uuid(url: str, token: str | None = None) -> str | None:
|
|
"""Get an uuid from Z-Wave-Me."""
|
|
conn = ZWaveMe(url=url, token=token)
|
|
uuid = None
|
|
if await conn.get_connection():
|
|
uuid = await conn.get_uuid()
|
|
await conn.close_ws()
|
|
return uuid
|