mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-11-15 08:33:52 -05:00
Initial commit
This commit is contained in:
14
custom_components/oasis_mini/helpers.py
Executable file
14
custom_components/oasis_mini/helpers.py
Executable file
@@ -0,0 +1,14 @@
|
||||
"""Helpers for the Oasis Mini integration."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_HOST
|
||||
|
||||
from .pyoasismini import OasisMini
|
||||
|
||||
|
||||
def create_client(data: dict[str, Any]) -> OasisMini:
|
||||
"""Create a Oasis Mini local client."""
|
||||
return OasisMini(data[CONF_HOST], data.get(CONF_ACCESS_TOKEN))
|
||||
Reference in New Issue
Block a user