1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-06 22:36:33 +01:00
Files
core/homeassistant/components/zwave_me/helpers.py
T
2026-04-30 21:14:48 +02:00

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