Skip to content

Commit

Permalink
fixed --no-pictures argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Jul 6, 2021
1 parent 9355156 commit 22fd7ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
- No unreleased changes so far

## [0.11.2] - 2021-07-06
### Fixed
- Fixed --no-pictures argument

## [0.11.1] - 2021-07-06
### Changed
- Update API to 0.12.1 for minor bugfix
Expand Down Expand Up @@ -125,7 +129,8 @@ All notable changes to this project will be documented in this file.
## [0.1.0] - 2021-05-26
Initial release

[unreleased]: https://github.com/tillsteinbach/WeConnect-cli/compare/v0.11.1..HEAD
[unreleased]: https://github.com/tillsteinbach/WeConnect-cli/compare/v0.11.2..HEAD
[0.11.2]: https://github.com/tillsteinbach/WeConnect-cli/releases/tag/v0.11.2
[0.11.1]: https://github.com/tillsteinbach/WeConnect-cli/releases/tag/v0.11.1
[0.11.0]: https://github.com/tillsteinbach/WeConnect-cli/releases/tag/v0.11.0
[0.10.2]: https://github.com/tillsteinbach/WeConnect-cli/releases/tag/v0.10.2
Expand Down
6 changes: 3 additions & 3 deletions weconnect_cli/weconnect_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def main(): # noqa: C901 # pylint: disable=too-many-statements,too-many-branche
try: # pylint: disable=too-many-nested-blocks
weConnect = weconnect.WeConnect(username=username, password=password, tokenfile=tokenfile,
updateAfterLogin=False, loginOnInit=False, updateCapabilities=(not args.noCapabilities),
updatePictures=(not args.noCapabilities))
updatePictures=(not args.noPictures))
if args.noCache or not os.path.isfile(args.cachefile):
weConnect.login()
else:
Expand All @@ -166,10 +166,10 @@ def main(): # noqa: C901 # pylint: disable=too-many-statements,too-many-branche

if args.command == 'shell':
try:
weConnect.update(updateCapabilities=(not args.noCapabilities), updatePictures=(not args.noCapabilities))
weConnect.update(updateCapabilities=(not args.noCapabilities), updatePictures=(not args.noPictures))
# disable caching
weConnect.clearCache(maxAge=None)
WeConnectShell(weConnect, noCapabilities=args.noCapabilities, noPictures=args.noCapabilities).cmdloop()
WeConnectShell(weConnect, noCapabilities=args.noCapabilities, noPictures=args.noPictures).cmdloop()
except KeyboardInterrupt:
pass
elif args.command == 'list':
Expand Down

0 comments on commit 22fd7ce

Please sign in to comment.