Skip to content

Commit

Permalink
Update version to 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Minims committed Jan 5, 2023
1 parent 2075fd2 commit 1914103
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion somfyProtect2Mqtt/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"
services:
somfyprotect2mqtt:
build: .
image: somfyprotect2mqtt:v0.2.4
image: somfyprotect2mqtt:v0.2.5
volumes:
- ./config:/config

18 changes: 5 additions & 13 deletions somfyProtect2Mqtt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from somfy_protect.api import SomfyProtectApi
from somfy_protect.websocket import SomfyProtectWebsocket

VERSION = "0.2.4"
VERSION = "0.2.5"


def somfy_protect_loop(somfy_protect_2_mqtt):
Expand All @@ -39,12 +39,8 @@ def somfy_protect_wss_loop(somfy_protect_websocket):

# Read Arguments
PARSER = argparse.ArgumentParser()
PARSER.add_argument(
"--verbose", "-v", action="store_true", help="verbose mode"
)
PARSER.add_argument(
"--configuration", "-c", type=str, help="config file path"
)
PARSER.add_argument("--verbose", "-v", action="store_true", help="verbose mode")
PARSER.add_argument("--configuration", "-c", type=str, help="config file path")
ARGS = PARSER.parse_args()
DEBUG = ARGS.verbose
CONFIG_FILE = ARGS.configuration
Expand All @@ -59,14 +55,10 @@ def somfy_protect_wss_loop(somfy_protect_websocket):
SSO = init_sso(config=CONFIG)
API = SomfyProtectApi(sso=SSO)
MQTT_CLIENT = init_mqtt(config=CONFIG, api=API)
WSS = SomfyProtectWebsocket(
sso=SSO, debug=DEBUG, config=CONFIG, mqtt_client=MQTT_CLIENT, api=API
)
WSS = SomfyProtectWebsocket(sso=SSO, debug=DEBUG, config=CONFIG, mqtt_client=MQTT_CLIENT, api=API)

try:
SOMFY_PROTECT = SomfyProtect2Mqtt(
api=API, mqtt_client=MQTT_CLIENT, config=CONFIG
)
SOMFY_PROTECT = SomfyProtect2Mqtt(api=API, mqtt_client=MQTT_CLIENT, config=CONFIG)

except SomfyProtectInitError as exp:
LOGGER.error(f"Unable to init: {exp}")
Expand Down

0 comments on commit 1914103

Please sign in to comment.