[~] Refactor

This commit is contained in:
Siarhei Siniak 2022-11-13 17:18:55 +03:00
parent f4680839c5
commit 1aadfb9b4b
3 changed files with 20 additions and 9 deletions

3
.gitmodules vendored

@ -10,3 +10,6 @@
[submodule "deps/argrento-huami-token"] [submodule "deps/argrento-huami-token"]
path = deps/argrento-huami-token path = deps/argrento-huami-token
url = https://github.com/argrento/huami-token url = https://github.com/argrento/huami-token
[submodule "deps/rbaron-m6-reveng"]
path = deps/rbaron-m6-reveng
url = https://github.com/rbaron/m6-reveng

1
deps/rbaron-m6-reveng vendored Submodule

@ -0,0 +1 @@
Subproject commit 08bd1fe346ef402294a371dd565b6a6d3c52b96f

@ -73,6 +73,7 @@ async def f5(
async def f4( async def f4(
timeout=None, timeout=None,
characteristics=None, characteristics=None,
operations=None,
name_check=None, name_check=None,
): ):
if isinstance(name_check, str): if isinstance(name_check, str):
@ -104,6 +105,12 @@ async def f4(
t4 = await f3(t3) t4 = await f3(t3)
pprint.pprint(t4) pprint.pprint(t4)
if not operations is None and inspect.isfunction(operations):
await operations(
client=t3,
t4=t4,
)
else:
t6 = {} t6 = {}
for o in characteristics: for o in characteristics:
try: try: