Skip to content

Commit 6aa5c59

Browse files
authored
Merge pull request #6 from IoTLabs-pl/v0.18.0-beta0
v0.18.0-beta0
2 parents 311b597 + c14eab3 commit 6aa5c59

File tree

19 files changed

+794
-862
lines changed

19 files changed

+794
-862
lines changed

.github/workflows/python-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Python check
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "master" ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ "master" ]
88

99
jobs:
1010
build:

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[MESSAGES CONTROL]
22

3-
disable=missing-docstring, contextmanager-generator-missing-cleanup
3+
disable=missing-docstring, fixme
44

55
[FORMAT]
66

pyhon/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from .connection.api import HonAPI
22
from .hon import Hon
3+
from .__version__ import __version__
34

4-
__all__ = ["Hon", "HonAPI"]
5+
__all__ = ["Hon", "HonAPI", "__version__"]

pyhon/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from pyhon import Hon, HonAPI, diagnose, printer
1616

1717
_LOGGER = logging.getLogger(__name__)
18+
logging.basicConfig(level=logging.DEBUG)
1819

1920

2021
def get_arguments() -> Dict[str, Any]:
@@ -43,7 +44,7 @@ def get_arguments() -> Dict[str, Any]:
4344

4445

4546
async def translate(language: str, json_output: bool = False) -> None:
46-
async with HonAPI(anonymous=True) as hon:
47+
async with HonAPI() as hon:
4748
keys = await hon.translation_keys(language)
4849
if json_output:
4950
print(json.dumps(keys, indent=4))
@@ -101,6 +102,8 @@ async def main() -> None:
101102
else:
102103
print(diagnose.yaml_export(device))
103104

105+
await asyncio.sleep(15)
106+
104107

105108
def start() -> None:
106109
try:

pyhon/__version__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.18.0-beta0"

0 commit comments

Comments
 (0)