1
mirror of https://github.com/home-assistant/core synced 2024-09-28 03:04:04 +02:00
ha-core/homeassistant/components/yalexs_ble/models.py
J. Nick Koston 763b898621
Add always connected option to Yale Access Bluetooth (#93224)
* Add always connected option to Yale Access Bluetooth

If the lock does not support push updates via advertisements or you want lock operation to be more responsive, you can enable always connected mode. Always connected will cause the lock to stay connected to Home Assistant via Bluetooth, which will use more battery.

* Update homeassistant/components/yalexs_ble/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-05-18 10:48:04 -05:00

16 lines
288 B
Python

"""The yalexs_ble integration models."""
from __future__ import annotations
from dataclasses import dataclass
from yalexs_ble import PushLock
@dataclass
class YaleXSBLEData:
"""Data for the yale xs ble integration."""
title: str
lock: PushLock
always_connected: bool