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