diff --git a/homeassistant/components/switchbot/manifest.json b/homeassistant/components/switchbot/manifest.json index 6dd23e2eec5..69f9eddc6cd 100644 --- a/homeassistant/components/switchbot/manifest.json +++ b/homeassistant/components/switchbot/manifest.json @@ -2,7 +2,7 @@ "domain": "switchbot", "name": "SwitchBot", "documentation": "https://www.home-assistant.io/integrations/switchbot", - "requirements": ["PySwitchbot==0.12.0"], + "requirements": ["PySwitchbot==0.13.0"], "config_flow": true, "codeowners": ["@danielhiversen", "@RenierM26"], "iot_class": "local_polling" diff --git a/requirements_all.txt b/requirements_all.txt index cd076d64a88..1dcd70030a3 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -46,7 +46,7 @@ PyRMVtransport==0.3.3 PySocks==1.7.1 # homeassistant.components.switchbot -# PySwitchbot==0.12.0 +# PySwitchbot==0.13.0 # homeassistant.components.transport_nsw PyTransportNSW==0.1.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 57d5a9a8944..928a9d6d568 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -24,7 +24,7 @@ PyQRCode==1.2.1 PyRMVtransport==0.3.3 # homeassistant.components.switchbot -# PySwitchbot==0.12.0 +# PySwitchbot==0.13.0 # homeassistant.components.transport_nsw PyTransportNSW==0.1.1 diff --git a/tests/components/switchbot/conftest.py b/tests/components/switchbot/conftest.py index 52e5fd4fa15..2fdea69de16 100644 --- a/tests/components/switchbot/conftest.py +++ b/tests/components/switchbot/conftest.py @@ -14,45 +14,42 @@ class MocGetSwitchbotDevices: self._all_services_data = { "e78943999999": { "mac_address": "e7:89:43:99:99:99", - "Flags": "06", - "Manufacturer": "5900e78943d9fe7c", - "Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b", + "isEncrypted": False, + "model": "H", "data": { "switchMode": "true", "isOn": "true", "battery": 91, "rssi": -71, }, - "model": "H", "modelName": "WoHand", }, "e78943909090": { "mac_address": "e7:89:43:90:90:90", - "Flags": "06", - "Manufacturer": "5900e78943d9fe7c", - "Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b", + "isEncrypted": False, + "model": "c", "data": { "calibration": True, "battery": 74, + "inMotion": False, "position": 100, "lightLevel": 2, + "deviceChain": 1, "rssi": -73, }, - "model": "c", "modelName": "WoCurtain", }, "ffffff19ffff": { "mac_address": "ff:ff:ff:19:ff:ff", - "Flags": "06", - "Manufacturer": "5900ffffff19ffff", - "Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b", + "isEncrypted": False, + "model": "m", + "rawAdvData": "000d6d00", }, } self._curtain_all_services_data = { "mac_address": "e7:89:43:90:90:90", - "Flags": "06", - "Manufacturer": "5900e78943d9fe7c", - "Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b", + "isEncrypted": False, + "model": "c", "data": { "calibration": True, "battery": 74, @@ -60,21 +57,18 @@ class MocGetSwitchbotDevices: "lightLevel": 2, "rssi": -73, }, - "model": "c", "modelName": "WoCurtain", } self._unsupported_device = { "mac_address": "test", - "Flags": "06", - "Manufacturer": "5900e78943d9fe7c", - "Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b", + "isEncrypted": False, + "model": "HoN", "data": { "switchMode": "true", "isOn": "true", "battery": 91, "rssi": -71, }, - "model": "HoN", "modelName": "WoOther", }