hass-core/homeassistant/generated/bluetooth.py
Josef Zweck e5fa6f0176
Add Bluetooth support to La Marzocco integration (#108287)
* init

* init tests

* linting

* checks

* tests, linting

* pylint

* add tests

* switch tests

* add water heater tests

* change icons

* extra args cleanup

* moar tests

* services tests

* remove extra platforms

* test for unique id

* back to single instance

* add diagnostics

* remove extra platforms

* test for unique id

* back to single instance

* Add better connection management for Idasen Desk (#102135)

* Return 'None' for light attributes when off instead of removing them (#101946)

* Bump home-assistant-bluetooth to 1.10.4 (#102268)

* Bump orjson to 3.9.9 (#102267)

* Bump opower to 0.0.37 (#102265)

* Bump Python-Roborock to 0.35.0 (#102275)

* Add CodeQL CI Job (#102273)

* Remove unused dsmr sensors (#102223)

* rebase messed up conftest

* more tests for init

* add client to coveragerc

* add client to coveragerc

* next lmcloud version

* strict typing

* more typing

* allow multiple machines

* remove unneeded var

* Update homeassistant/components/lamarzocco/coordinator.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/diagnostics.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/__init__.py

Co-authored-by: Robert Resch <robert@resch.dev>

* PR suggestions

* remove base exception

* Update manifest.json

* update lmcloud

* update lmcloud

* remove ignore

* selection bugfix for machines with space in name

* bugfix temps

* add options flow

* send out full user input

* remove options flow

* split the tests to avoid timeouts

* use selectoptionsdict for selection

* removing rccoleman

* improve test coverage to 100%

* Update config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* autoselect cloud machine for discovered machine

* move default values to 3rd party lib

* bring property changes from lmcloud

* moving things to lmcloud

* move validation to method

* move more things to lmcloud

* remove unused const

* Update homeassistant/components/lamarzocco/coordinator.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/coordinator.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/__init__.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/__init__.py

Co-authored-by: Robert Resch <robert@resch.dev>

* remove callback from coordinator

* remove waterheater, add switch

* improvement to background task

* next lmcloud

* adapt to lib changes

* Update homeassistant/components/lamarzocco/strings.json

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/entity.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/entity.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/switch.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/switch.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/entity.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/strings.json

Co-authored-by: Robert Resch <robert@resch.dev>

* requested changes

* Update homeassistant/components/lamarzocco/switch.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update homeassistant/components/lamarzocco/entity.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update tests/components/lamarzocco/test_config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update tests/components/lamarzocco/test_config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* some requested changes

* changes

* requested changes

* move steam boiler to controls

* fix: remove entities from GS3MP model + tests

* remove dataclass decorator

* next lmcloud version

* improvements

* move reauth to user step

* improve config flow

* remove asserts in favor of runtimeerrors

* undo conftest comment

* make duc return none

* Update homeassistant/components/lamarzocco/switch.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/lamarzocco/entity.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/lamarzocco/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* remove diagnostics, changes

* refine config flow

* remove runtimeerrors in favor of asserts

* move initialization of lm_client to coordinator

* remove things from lmclient

* remove lm_client

* remove lm_client

* bump lm version

* correctly set initialized for tests

* move exception handling inside init + tests

* add test for switch without bluetooth on

* bump lmcloud

* pass httpx client to LMLocalAPI

* add call function to reduce code

* switch to snapshot testing

* remove bluetooth

* bump version

* cleanup import

* remove unused const

* set correct integration_type

* correct default selection in CF

* reduce unnecessary tests by fixture change

* use other json loads helpers

* move prebrew/infusion to select entity

* bump lmcloud

* Update coordinator.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update coordinator.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update coordinator.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update entity.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update entity.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* requested feedback

* step description, bump lmcloud

* create init integration functino

* revert

* ruff

* remove leftover BT test

* make main switch main entity

* bump lmcloud

* re-add bluetooth

* improve

* bump firmware (again)

* correct test

* Update homeassistant/components/lamarzocco/coordinator.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/lamarzocco/entity.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/lamarzocco/strings.json

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* separate device test

* add BT to entites

* fix import

* docstring

* minor

* fix rebase

* get device from discovered devices

* tweak

* change tests

* switch to dict

* switch to options

* fix

* fix

---------

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: tronikos <tronikos@users.noreply.github.com>
Co-authored-by: Luke Lashley <conway220@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: dupondje <jean-louis@dupond.be>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-21 13:08:11 +01:00

662 lines
16 KiB
Python

"""Automatically generated file.
To update, run python3 -m script.hassfest
"""
from __future__ import annotations
BLUETOOTH: list[dict[str, bool | str | int | list[int]]] = [
{
"domain": "airthings_ble",
"manufacturer_id": 820,
"service_uuid": "b42e1f6e-ade7-11e4-89d3-123b93f75cba",
},
{
"domain": "airthings_ble",
"manufacturer_id": 820,
"service_uuid": "b42e4a8e-ade7-11e4-89d3-123b93f75cba",
},
{
"domain": "airthings_ble",
"manufacturer_id": 820,
"service_uuid": "b42e1c08-ade7-11e4-89d3-123b93f75cba",
},
{
"domain": "airthings_ble",
"manufacturer_id": 820,
"service_uuid": "b42e3882-ade7-11e4-89d3-123b93f75cba",
},
{
"connectable": False,
"domain": "aranet",
"manufacturer_id": 1794,
"service_uuid": "f0cd1400-95da-4f4b-9ac8-aa55d312af0c",
},
{
"connectable": False,
"domain": "aranet",
"manufacturer_id": 1794,
"service_uuid": "0000fce0-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "bluemaestro",
"manufacturer_id": 307,
},
{
"connectable": False,
"domain": "bthome",
"service_data_uuid": "0000181c-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "bthome",
"service_data_uuid": "0000181e-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "bthome",
"service_data_uuid": "0000fcd2-0000-1000-8000-00805f9b34fb",
},
{
"domain": "dormakaba_dkey",
"service_uuid": "e7a60000-6639-429f-94fd-86de8ea26897",
},
{
"domain": "dormakaba_dkey",
"service_uuid": "e7a60001-6639-429f-94fd-86de8ea26897",
},
{
"domain": "eufylife_ble",
"local_name": "eufy T9140",
},
{
"domain": "eufylife_ble",
"local_name": "eufy T9146",
},
{
"domain": "eufylife_ble",
"local_name": "eufy T9147",
},
{
"domain": "eufylife_ble",
"local_name": "eufy T9148",
},
{
"domain": "eufylife_ble",
"local_name": "eufy T9149",
},
{
"connectable": False,
"domain": "fjaraskupan",
"manufacturer_data_start": [
79,
68,
70,
74,
65,
82,
],
"manufacturer_id": 20296,
},
{
"connectable": True,
"domain": "gardena_bluetooth",
"manufacturer_id": 1062,
"service_uuid": "98bd0001-0b0e-421a-84e5-ddbf75dc6de4",
},
{
"connectable": False,
"domain": "govee_ble",
"local_name": "Govee*",
},
{
"connectable": False,
"domain": "govee_ble",
"local_name": "GVH5*",
},
{
"connectable": False,
"domain": "govee_ble",
"local_name": "B5178*",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 1,
"service_uuid": "0000ec88-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 6966,
"service_uuid": "00008451-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 63391,
"service_uuid": "00008351-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 26589,
"service_uuid": "00008351-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 57391,
"service_uuid": "00008351-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 18994,
"service_uuid": "00008551-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 818,
"service_uuid": "00008551-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 53579,
"service_uuid": "00008151-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 43682,
"service_uuid": "00008151-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 59970,
"service_uuid": "00008151-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 63585,
"service_uuid": "00008151-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 14474,
"service_uuid": "00008151-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 10032,
"service_uuid": "00008251-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "govee_ble",
"manufacturer_id": 19506,
"service_uuid": "00001801-0000-1000-8000-00805f9b34fb",
},
{
"domain": "homekit_controller",
"manufacturer_data_start": [
6,
],
"manufacturer_id": 76,
},
{
"domain": "ibeacon",
"manufacturer_data_start": [
2,
21,
],
"manufacturer_id": 76,
},
{
"domain": "idasen_desk",
"service_uuid": "99fa0001-338a-1024-8a49-009c0215f78a",
},
{
"domain": "improv_ble",
"service_data_uuid": "00004677-0000-1000-8000-00805f9b34fb",
"service_uuid": "00467768-6228-2272-4663-277478268000",
},
{
"connectable": False,
"domain": "inkbird",
"local_name": "sps",
},
{
"connectable": False,
"domain": "inkbird",
"local_name": "Inkbird*",
},
{
"connectable": False,
"domain": "inkbird",
"local_name": "iBBQ*",
},
{
"connectable": False,
"domain": "inkbird",
"local_name": "xBBQ*",
},
{
"connectable": False,
"domain": "inkbird",
"local_name": "tps",
},
{
"connectable": False,
"domain": "kegtron",
"manufacturer_id": 65535,
},
{
"domain": "keymitt_ble",
"service_uuid": "0000abcd-0000-1000-8000-00805f9b34fb",
},
{
"domain": "keymitt_ble",
"local_name": "mib*",
},
{
"domain": "lamarzocco",
"local_name": "MICRA_*",
},
{
"domain": "lamarzocco",
"local_name": "MINI_*",
},
{
"domain": "lamarzocco",
"local_name": "GS3_*",
},
{
"domain": "lamarzocco",
"local_name": "GS3AV_*",
},
{
"domain": "ld2410_ble",
"local_name": "HLK-LD2410B_*",
},
{
"domain": "ld2410_ble",
"local_name": "HLK-LD2410_*",
},
{
"domain": "ld2410_ble",
"manufacturer_data_start": [
7,
1,
],
"manufacturer_id": 256,
"service_uuid": "0000af30-0000-1000-8000-00805f9b34fb",
},
{
"domain": "led_ble",
"local_name": "LEDnet*",
},
{
"domain": "led_ble",
"local_name": "BLE-LED*",
},
{
"domain": "led_ble",
"local_name": "LEDBLE*",
},
{
"domain": "led_ble",
"local_name": "Triones*",
},
{
"domain": "led_ble",
"local_name": "LEDBlue*",
},
{
"domain": "led_ble",
"local_name": "Dream~*",
},
{
"domain": "led_ble",
"local_name": "QHM-*",
},
{
"domain": "led_ble",
"local_name": "AP-*",
},
{
"domain": "medcom_ble",
"service_uuid": "39b31fec-b63a-4ef7-b163-a7317872007f",
},
{
"domain": "melnor",
"manufacturer_data_start": [
89,
],
"manufacturer_id": 13,
},
{
"connectable": False,
"domain": "moat",
"local_name": "Moat_S*",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
3,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
4,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
5,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
6,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
8,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
9,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
10,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
11,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "mopeka",
"manufacturer_data_start": [
12,
],
"manufacturer_id": 89,
"service_uuid": "0000fee5-0000-1000-8000-00805f9b34fb",
},
{
"domain": "oralb",
"manufacturer_id": 220,
},
{
"connectable": False,
"domain": "qingping",
"local_name": "Qingping*",
},
{
"connectable": False,
"domain": "qingping",
"local_name": "Lee Guitars*",
},
{
"connectable": False,
"domain": "qingping",
"service_data_uuid": "0000fdcd-0000-1000-8000-00805f9b34fb",
},
{
"domain": "rapt_ble",
"manufacturer_data_start": [
80,
84,
],
"manufacturer_id": 16722,
},
{
"domain": "rapt_ble",
"manufacturer_data_start": [
71,
],
"manufacturer_id": 17739,
},
{
"connectable": False,
"domain": "ruuvitag_ble",
"manufacturer_id": 1177,
},
{
"connectable": False,
"domain": "ruuvitag_ble",
"local_name": "Ruuvi *",
},
{
"connectable": False,
"domain": "sensirion_ble",
"manufacturer_id": 1749,
},
{
"connectable": False,
"domain": "sensirion_ble",
"local_name": "MyCO2*",
},
{
"connectable": False,
"domain": "sensorpro",
"manufacturer_data_start": [
1,
1,
164,
193,
],
"manufacturer_id": 43605,
},
{
"connectable": False,
"domain": "sensorpro",
"manufacturer_data_start": [
1,
5,
164,
193,
],
"manufacturer_id": 43605,
},
{
"connectable": False,
"domain": "sensorpush",
"local_name": "SensorPush*",
},
{
"connectable": False,
"domain": "sensorpush",
"local_name": "s",
"service_uuid": "ef090000-11d6-42ba-93b8-9dd7ec090aa9",
},
{
"domain": "snooz",
"local_name": "Snooz*",
},
{
"domain": "snooz",
"service_uuid": "729f0608-496a-47fe-a124-3a62aaa3fbc0",
},
{
"connectable": False,
"domain": "switchbot",
"service_data_uuid": "00000d00-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "switchbot",
"service_data_uuid": "0000fd3d-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "switchbot",
"service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
},
{
"connectable": False,
"domain": "switchbot",
"manufacturer_id": 2409,
},
{
"connectable": True,
"domain": "switchbot",
"manufacturer_id": 89,
},
{
"connectable": True,
"domain": "switchbot",
"manufacturer_id": 741,
},
{
"connectable": False,
"domain": "thermobeacon",
"manufacturer_data_start": [
0,
],
"manufacturer_id": 16,
"service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "thermobeacon",
"manufacturer_data_start": [
0,
],
"manufacturer_id": 17,
"service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "thermobeacon",
"manufacturer_data_start": [
0,
],
"manufacturer_id": 21,
"service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "thermobeacon",
"manufacturer_data_start": [
0,
],
"manufacturer_id": 24,
"service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "thermobeacon",
"manufacturer_data_start": [
0,
],
"manufacturer_id": 27,
"service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "thermobeacon",
"local_name": "ThermoBeacon",
},
{
"connectable": False,
"domain": "thermopro",
"local_name": "TP35*",
},
{
"connectable": False,
"domain": "thermopro",
"local_name": "TP39*",
},
{
"connectable": False,
"domain": "thermopro",
"local_name": "TP96*",
},
{
"connectable": False,
"domain": "thermopro",
"local_name": "TP97*",
},
{
"domain": "tilt_ble",
"manufacturer_data_start": [
2,
21,
164,
149,
187,
],
"manufacturer_id": 76,
},
{
"connectable": False,
"domain": "xiaomi_ble",
"service_data_uuid": "0000181b-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "xiaomi_ble",
"service_data_uuid": "0000181d-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "xiaomi_ble",
"service_data_uuid": "0000fd50-0000-1000-8000-00805f9b34fb",
},
{
"connectable": False,
"domain": "xiaomi_ble",
"service_data_uuid": "0000fe95-0000-1000-8000-00805f9b34fb",
},
{
"domain": "yalexs_ble",
"manufacturer_id": 465,
"service_uuid": "0000fe24-0000-1000-8000-00805f9b34fb",
},
]