Skip to content

Commit

Permalink
Merge branch 'feature/tuyamcu'
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Sep 6, 2023
2 parents 14d6c76 + ef0cd43 commit 6b8c768
Show file tree
Hide file tree
Showing 41 changed files with 3,248 additions and 264 deletions.
6 changes: 3 additions & 3 deletions ltctplugin/upk2esphome/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
cloudcutter_list_devices,
)
from ltctplugin.upk2esphome.work import UpkThread
from upk2esphome import Opts, generate_yaml
from upk2esphome import Opts, upk2esphome


def add_options():
Expand Down Expand Up @@ -160,12 +160,12 @@ def firmware(file: click.File, output: click.File, **kwargs):
work.start()


def write_upk(data: dict, output: click.File, storage_only: bool, **kwargs):
def write_upk(data: dict, output: click.File, storage_only: bool = False, **kwargs):
if storage_only:
text = json.dumps(data, indent="\t")
else:
opts = Opts(**kwargs)
yr = generate_yaml(data, opts)
yr = upk2esphome(data, opts)
for line in yr.logs:
info(f"UPK: {line}")
for line in yr.warnings:
Expand Down
Loading

0 comments on commit 6b8c768

Please sign in to comment.