Switchbot bump api version (#59398)
* Bump Switchbot api for reliability improvements. * Bump api version, update mock test import to reflect api data changes.
This commit is contained in:
parent
012e005e0d
commit
121a0915bc
4 changed files with 16 additions and 22 deletions
|
@ -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.12.0"],
|
"requirements": ["PySwitchbot==0.13.0"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"codeowners": ["@danielhiversen", "@RenierM26"],
|
"codeowners": ["@danielhiversen", "@RenierM26"],
|
||||||
"iot_class": "local_polling"
|
"iot_class": "local_polling"
|
||||||
|
|
|
@ -46,7 +46,7 @@ PyRMVtransport==0.3.3
|
||||||
PySocks==1.7.1
|
PySocks==1.7.1
|
||||||
|
|
||||||
# homeassistant.components.switchbot
|
# homeassistant.components.switchbot
|
||||||
# PySwitchbot==0.12.0
|
# PySwitchbot==0.13.0
|
||||||
|
|
||||||
# homeassistant.components.transport_nsw
|
# homeassistant.components.transport_nsw
|
||||||
PyTransportNSW==0.1.1
|
PyTransportNSW==0.1.1
|
||||||
|
|
|
@ -24,7 +24,7 @@ PyQRCode==1.2.1
|
||||||
PyRMVtransport==0.3.3
|
PyRMVtransport==0.3.3
|
||||||
|
|
||||||
# homeassistant.components.switchbot
|
# homeassistant.components.switchbot
|
||||||
# PySwitchbot==0.12.0
|
# PySwitchbot==0.13.0
|
||||||
|
|
||||||
# homeassistant.components.transport_nsw
|
# homeassistant.components.transport_nsw
|
||||||
PyTransportNSW==0.1.1
|
PyTransportNSW==0.1.1
|
||||||
|
|
|
@ -14,45 +14,42 @@ class MocGetSwitchbotDevices:
|
||||||
self._all_services_data = {
|
self._all_services_data = {
|
||||||
"e78943999999": {
|
"e78943999999": {
|
||||||
"mac_address": "e7:89:43:99:99:99",
|
"mac_address": "e7:89:43:99:99:99",
|
||||||
"Flags": "06",
|
"isEncrypted": False,
|
||||||
"Manufacturer": "5900e78943d9fe7c",
|
"model": "H",
|
||||||
"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
|
||||||
"data": {
|
"data": {
|
||||||
"switchMode": "true",
|
"switchMode": "true",
|
||||||
"isOn": "true",
|
"isOn": "true",
|
||||||
"battery": 91,
|
"battery": 91,
|
||||||
"rssi": -71,
|
"rssi": -71,
|
||||||
},
|
},
|
||||||
"model": "H",
|
|
||||||
"modelName": "WoHand",
|
"modelName": "WoHand",
|
||||||
},
|
},
|
||||||
"e78943909090": {
|
"e78943909090": {
|
||||||
"mac_address": "e7:89:43:90:90:90",
|
"mac_address": "e7:89:43:90:90:90",
|
||||||
"Flags": "06",
|
"isEncrypted": False,
|
||||||
"Manufacturer": "5900e78943d9fe7c",
|
"model": "c",
|
||||||
"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
|
||||||
"data": {
|
"data": {
|
||||||
"calibration": True,
|
"calibration": True,
|
||||||
"battery": 74,
|
"battery": 74,
|
||||||
|
"inMotion": False,
|
||||||
"position": 100,
|
"position": 100,
|
||||||
"lightLevel": 2,
|
"lightLevel": 2,
|
||||||
|
"deviceChain": 1,
|
||||||
"rssi": -73,
|
"rssi": -73,
|
||||||
},
|
},
|
||||||
"model": "c",
|
|
||||||
"modelName": "WoCurtain",
|
"modelName": "WoCurtain",
|
||||||
},
|
},
|
||||||
"ffffff19ffff": {
|
"ffffff19ffff": {
|
||||||
"mac_address": "ff:ff:ff:19:ff:ff",
|
"mac_address": "ff:ff:ff:19:ff:ff",
|
||||||
"Flags": "06",
|
"isEncrypted": False,
|
||||||
"Manufacturer": "5900ffffff19ffff",
|
"model": "m",
|
||||||
"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
"rawAdvData": "000d6d00",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
self._curtain_all_services_data = {
|
self._curtain_all_services_data = {
|
||||||
"mac_address": "e7:89:43:90:90:90",
|
"mac_address": "e7:89:43:90:90:90",
|
||||||
"Flags": "06",
|
"isEncrypted": False,
|
||||||
"Manufacturer": "5900e78943d9fe7c",
|
"model": "c",
|
||||||
"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
|
||||||
"data": {
|
"data": {
|
||||||
"calibration": True,
|
"calibration": True,
|
||||||
"battery": 74,
|
"battery": 74,
|
||||||
|
@ -60,21 +57,18 @@ class MocGetSwitchbotDevices:
|
||||||
"lightLevel": 2,
|
"lightLevel": 2,
|
||||||
"rssi": -73,
|
"rssi": -73,
|
||||||
},
|
},
|
||||||
"model": "c",
|
|
||||||
"modelName": "WoCurtain",
|
"modelName": "WoCurtain",
|
||||||
}
|
}
|
||||||
self._unsupported_device = {
|
self._unsupported_device = {
|
||||||
"mac_address": "test",
|
"mac_address": "test",
|
||||||
"Flags": "06",
|
"isEncrypted": False,
|
||||||
"Manufacturer": "5900e78943d9fe7c",
|
"model": "HoN",
|
||||||
"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
|
|
||||||
"data": {
|
"data": {
|
||||||
"switchMode": "true",
|
"switchMode": "true",
|
||||||
"isOn": "true",
|
"isOn": "true",
|
||||||
"battery": 91,
|
"battery": 91,
|
||||||
"rssi": -71,
|
"rssi": -71,
|
||||||
},
|
},
|
||||||
"model": "HoN",
|
|
||||||
"modelName": "WoOther",
|
"modelName": "WoOther",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue