Skip to content

Commit

Permalink
Remove Unused
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffSteinbok committed Nov 28, 2024
1 parent 4b4f119 commit 8e02934
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 103 deletions.
2 changes: 1 addition & 1 deletion custom_components/dreo/pydreo/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
102 changes: 0 additions & 102 deletions tests/pydreo/call_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 8e02934

Please sign in to comment.