From 511af3c455d8dd1779fbe1f6127e0b6d258a5bcb Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 24 Jul 2022 16:55:52 -0500 Subject: [PATCH] Update switchbot bluetooth matchers for sensor devices (#75690) --- CODEOWNERS | 4 ++-- homeassistant/components/switchbot/manifest.json | 11 +++++++++-- homeassistant/generated/bluetooth.py | 4 ++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index 66e54b25b9e..bcbd6c20364 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1042,8 +1042,8 @@ build.json @home-assistant/supervisor /tests/components/switch/ @home-assistant/core /homeassistant/components/switch_as_x/ @home-assistant/core /tests/components/switch_as_x/ @home-assistant/core -/homeassistant/components/switchbot/ @danielhiversen @RenierM26 @murtas -/tests/components/switchbot/ @danielhiversen @RenierM26 @murtas +/homeassistant/components/switchbot/ @bdraco @danielhiversen @RenierM26 @murtas +/tests/components/switchbot/ @bdraco @danielhiversen @RenierM26 @murtas /homeassistant/components/switcher_kis/ @tomerfi @thecode /tests/components/switcher_kis/ @tomerfi @thecode /homeassistant/components/switchmate/ @danielhiversen diff --git a/homeassistant/components/switchbot/manifest.json b/homeassistant/components/switchbot/manifest.json index a82ef264698..3bccbb4f674 100644 --- a/homeassistant/components/switchbot/manifest.json +++ b/homeassistant/components/switchbot/manifest.json @@ -5,8 +5,15 @@ "requirements": ["PySwitchbot==0.15.1"], "config_flow": true, "dependencies": ["bluetooth"], - "codeowners": ["@danielhiversen", "@RenierM26", "@murtas"], - "bluetooth": [{ "service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b" }], + "codeowners": ["@bdraco", "@danielhiversen", "@RenierM26", "@murtas"], + "bluetooth": [ + { + "service_data_uuid": "0000fd3d-0000-1000-8000-00805f9b34fb" + }, + { + "service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b" + } + ], "iot_class": "local_push", "loggers": ["switchbot"] } diff --git a/homeassistant/generated/bluetooth.py b/homeassistant/generated/bluetooth.py index f9dd4352e28..5dde90f1f7a 100644 --- a/homeassistant/generated/bluetooth.py +++ b/homeassistant/generated/bluetooth.py @@ -65,6 +65,10 @@ BLUETOOTH: list[dict[str, str | int | list[int]]] = [ "domain": "sensorpush", "local_name": "SensorPush*" }, + { + "domain": "switchbot", + "service_data_uuid": "0000fd3d-0000-1000-8000-00805f9b34fb" + }, { "domain": "switchbot", "service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b"