From 8e02934327739f54a4fd0b82f278b57f5cf93318 Mon Sep 17 00:00:00 2001 From: Jeff Steinbok Date: Thu, 28 Nov 2024 13:54:43 -0800 Subject: [PATCH] Remove Unused --- custom_components/dreo/pydreo/helpers.py | 2 +- tests/pydreo/call_json.py | 102 ----------------------- 2 files changed, 1 insertion(+), 103 deletions(-) diff --git a/custom_components/dreo/pydreo/helpers.py b/custom_components/dreo/pydreo/helpers.py index 207be29..a075b24 100644 --- a/custom_components/dreo/pydreo/helpers.py +++ b/custom_components/dreo/pydreo/helpers.py @@ -164,7 +164,7 @@ def call_api( return response, status_code @staticmethod - def code_check(reponse_dict: dict) -> bool: + def code_check(reponse_dict: dict) -> bool: """Test if code == 0 for successful API call.""" if reponse_dict is None: _LOGGER.error("No response from API") diff --git a/tests/pydreo/call_json.py b/tests/pydreo/call_json.py index 8c4e3fc..b3a89e5 100644 --- a/tests/pydreo/call_json.py +++ b/tests/pydreo/call_json.py @@ -60,105 +60,3 @@ def login_call_body(email, password): 'userType': '1', } return json_object - -GET_DEVICE_RESPONSE = { - "code": 0, - "msg": "OK", - "data": { - "mixed": { - "mcu_hardware_model": { - "state": "SC95F8613B", - "timestamp": 1686788164 - }, - "wifi_ssid": { - "state": "steinbok-iot", - "timestamp": 1686788164 - }, - "windlevel": { - "state": 2, - "timestamp": 1687064489 - }, - "wifi_rssi": { - "state": -37, - "timestamp": 1686788164 - }, - "poweron": { - "state": "True", - "timestamp": 1687057235 - }, - "windtype": { - "state": 1, - "timestamp": 1686789795 - }, - "timeron": { - "state": { - "du": 0, - "ts": 7 - }, - "timestamp": None - }, - "voiceon": { - "state": False, - "timestamp": 1686788993 - }, - "wrong": { - "state": 0, - "timestamp": 1686788164 - }, - "module_firmware_version": { - "state": "2.3.15", - "timestamp": 1686788164 - }, - "connected": { - "state": True, - "timestamp": 1686788164 - }, - "mcuon": { - "state": True, - "timestamp": 1686788164 - }, - "timeroff": { - "state": { - "du": 0, - "ts": 7 - }, - "timestamp": None - }, - "shakehorizon": { - "state": False, - "timestamp": 1686811203 - }, - "network_latency": { - "state": 102, - "timestamp": 1686788164 - }, - "_ota": { - "state": 0, - "timestamp": 1686788164 - }, - "module_hardware_model": { - "state": "HeFi", - "timestamp": 1686788164 - }, - "mcu_firmware_version": { - "state": "1.0.17", - "timestamp": 1686788164 - }, - "temperature": { - "state": 71, - "timestamp": 1687062055 - }, - "module_hardware_mac": { - "state": "001cc263494b", - "timestamp": 1686788164 - }, - "ledalwayson": { - "state": False, - "timestamp": 1686788164 - } - }, - "sn": "1582290393341964289-77f2977b24191a4a: 001: 0000000000b", - "productId": "1582290393341964289", - "region": "us-east-2" - } -}