mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Bump PySwitchbot to 0.29.1 (#84119)
fixes https://github.com/home-assistant/core/issues/82795 closes https://github.com/home-assistant/core/issues/78562
This commit is contained in:
parent
b96eab3e5e
commit
884fbdd5ce
@ -8,6 +8,7 @@ from typing import TYPE_CHECKING, Any
|
||||
|
||||
import async_timeout
|
||||
import switchbot
|
||||
from switchbot import SwitchbotModel
|
||||
|
||||
from homeassistant.components import bluetooth
|
||||
from homeassistant.components.bluetooth.passive_update_coordinator import (
|
||||
@ -44,7 +45,7 @@ class SwitchbotDataUpdateCoordinator(PassiveBluetoothDataUpdateCoordinator):
|
||||
base_unique_id: str,
|
||||
device_name: str,
|
||||
connectable: bool,
|
||||
model: str,
|
||||
model: SwitchbotModel,
|
||||
) -> None:
|
||||
"""Initialize global switchbot data updater."""
|
||||
super().__init__(
|
||||
@ -81,7 +82,7 @@ class SwitchbotDataUpdateCoordinator(PassiveBluetoothDataUpdateCoordinator):
|
||||
self.ble_device = service_info.device
|
||||
if not (
|
||||
adv := switchbot.parse_advertisement_data(
|
||||
service_info.device, service_info.advertisement
|
||||
service_info.device, service_info.advertisement, self.model
|
||||
)
|
||||
):
|
||||
return
|
||||
|
@ -2,7 +2,7 @@
|
||||
"domain": "switchbot",
|
||||
"name": "SwitchBot",
|
||||
"documentation": "https://www.home-assistant.io/integrations/switchbot",
|
||||
"requirements": ["PySwitchbot==0.23.2"],
|
||||
"requirements": ["PySwitchbot==0.29.1"],
|
||||
"config_flow": true,
|
||||
"dependencies": ["bluetooth"],
|
||||
"codeowners": [
|
||||
@ -24,6 +24,14 @@
|
||||
{
|
||||
"service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
||||
"connectable": false
|
||||
},
|
||||
{
|
||||
"manufacturer_id": 2409,
|
||||
"connectable": false
|
||||
},
|
||||
{
|
||||
"manufacturer_id": 89,
|
||||
"connectable": true
|
||||
}
|
||||
],
|
||||
"iot_class": "local_push",
|
||||
|
@ -332,6 +332,16 @@ BLUETOOTH: list[dict[str, bool | str | int | list[int]]] = [
|
||||
"domain": "switchbot",
|
||||
"service_uuid": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
||||
},
|
||||
{
|
||||
"connectable": False,
|
||||
"domain": "switchbot",
|
||||
"manufacturer_id": 2409,
|
||||
},
|
||||
{
|
||||
"connectable": True,
|
||||
"domain": "switchbot",
|
||||
"manufacturer_id": 89,
|
||||
},
|
||||
{
|
||||
"connectable": False,
|
||||
"domain": "thermobeacon",
|
||||
|
@ -40,7 +40,7 @@ PyRMVtransport==0.3.3
|
||||
PySocks==1.7.1
|
||||
|
||||
# homeassistant.components.switchbot
|
||||
PySwitchbot==0.23.2
|
||||
PySwitchbot==0.29.1
|
||||
|
||||
# homeassistant.components.transport_nsw
|
||||
PyTransportNSW==0.1.1
|
||||
|
@ -36,7 +36,7 @@ PyRMVtransport==0.3.3
|
||||
PySocks==1.7.1
|
||||
|
||||
# homeassistant.components.switchbot
|
||||
PySwitchbot==0.23.2
|
||||
PySwitchbot==0.29.1
|
||||
|
||||
# homeassistant.components.transport_nsw
|
||||
PyTransportNSW==0.1.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user