Skip to content

Commit

Permalink
Bump PySwitchbot to 0.29.1 (home-assistant#84119)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored and mkmer committed Dec 30, 2022
1 parent d2319c9 commit fe38961
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/switchbot/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import async_timeout
import switchbot
from switchbot import SwitchbotModel

from homeassistant.components import bluetooth
from homeassistant.components.bluetooth.passive_update_coordinator import (
Expand Down Expand Up @@ -44,7 +45,7 @@ def __init__(
base_unique_id: str,
device_name: str,
connectable: bool,
model: str,
model: SwitchbotModel,
) -> None:
"""Initialize global switchbot data updater."""
super().__init__(
Expand Down Expand Up @@ -81,7 +82,7 @@ def _async_handle_bluetooth_event(
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
Expand Down
10 changes: 9 additions & 1 deletion homeassistant/components/switchbot/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions homeassistant/generated/bluetooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,16 @@
"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",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe38961

Please sign in to comment.