Update dependencies.
5 files changed, 78 insertions(+), 62 deletions(-)

M mqtt/Makefile
M mqtt/VERSION
M mqtt/fronius.py
M mqtt/poetry.lock
M mqtt/pyproject.toml
M mqtt/Makefile +15 -12
@@ 7,42 7,45 @@ requirements.txt: poetry.lock pyproject.
 
 bump-major:
 	cat VERSION | awk -F. '{print $$1 + 1 ".0.0"}' | tee VERSION
-	
+
 bump-minor:
 	cat VERSION | awk -F. '{print $$1 "." $$2 + 1  ".0"}' | tee VERSION
-	
-VERSION: fronius.py requirements.txt
+
+VERSION: fronius.py poetry.lock
 	cat VERSION | awk -F. '{print $$1 "." $$2 "." $$3 + 1}' | tee VERSION
-	
+
 release: Dockerfile VERSION
 	docker buildx build . -t $(IMAGE):armv6 --platform linux/arm/v6 --push
 	docker buildx build . -t $(IMAGE):armv7 --platform linux/arm/v7 --push
 	docker buildx build . -t $(IMAGE):amd64 --platform linux/amd64 --push
-	
+	docker buildx build . -t $(IMAGE):arm64 --platform linux/arm64 --push
+
 	docker pull $(IMAGE):armv6
 	docker pull $(IMAGE):armv7
 	docker pull $(IMAGE):amd64
-	
+	docker pull $(IMAGE):arm64
+
 	docker image rm --force $(IMAGE):latest
-	
+
 	docker manifest create $(IMAGE):latest \
 		$(IMAGE):armv6 \
 		$(IMAGE):armv7 \
 		$(IMAGE):amd64 \
+		$(IMAGE):arm64 \
 		--amend
-	
+
 	docker manifest annotate $(IMAGE):latest $(IMAGE):armv6 --variant v6l
 	docker manifest annotate $(IMAGE):latest $(IMAGE):armv7 --variant v7l
-	
+
 	docker manifest create $(IMAGE):$(shell cat VERSION) \
 		$(IMAGE):armv6 \
 		$(IMAGE):armv7 \
 		$(IMAGE):amd64 \
+		$(IMAGE):arm64 \
 		--amend
-	
+
 	docker manifest annotate $(IMAGE):$(shell cat VERSION) $(IMAGE):armv6 --variant v6l
 	docker manifest annotate $(IMAGE):$(shell cat VERSION) $(IMAGE):armv7 --variant v7l
-	
+
 	docker manifest push $(IMAGE):$(shell cat VERSION)
 	docker manifest push $(IMAGE):latest
-	
  No newline at end of file

          
M mqtt/VERSION +1 -1
@@ 1,1 1,1 @@ 
-0.1.0
+0.1.1

          
M mqtt/fronius.py +11 -2
@@ 3,14 3,20 @@ from functools import cached_property
 from urllib.parse import urlparse
 import json
 import os
+import logging
 
 import paho.mqtt.client as mqtt
 import requests
 
-URL = 'http://{}/solar_api/v1/GetPowerFlowRealtimeData.fcgi'.format(os.environ['INVERTER'], 'fronius.lan')
+logger = logging.getLogger(__file__)
+URL = 'http://{}/solar_api/v1/GetPowerFlowRealtimeData.fcgi'.format(
+    os.environ.get('INVERTER', 'fronius.lan')
+)
 BROKER = os.environ.get('MQTT_BROKER', 'mqtt://mqtt.local:1883')
 MQTT_TOPIC = os.environ.get('MQTT_TOPIC', 'solar/current')
 
+logger.debug(f'{URL} -> {BROKER}/{MQTT_TOPIC}')
+
 
 class Bridge:
     @cached_property

          
@@ 19,6 25,9 @@ class Bridge:
         client = mqtt.Client()
         if broker.username:
             client.username_pw_set(broker.username, password=broker.password)
+        logger.debug(
+            f'Connecting to mqtt://{broker.hostname}:{broker.port or 1883}'
+        )
         client.connect(broker.hostname, port=broker.port or 1883)
         return client
 

          
@@ 46,7 55,7 @@ class Bridge:
 
 def main():
     bridge = Bridge()
-    asyncio.get_event_loop().run_until_complete(bridge.run())
+    asyncio.new_event_loop().run_until_complete(bridge.run())
 
 
 if __name__ == '__main__':

          
M mqtt/poetry.lock +49 -45
@@ 1,94 1,98 @@ 
 [[package]]
-category = "main"
-description = "Python package for providing Mozilla's CA Bundle."
 name = "certifi"
-optional = false
-python-versions = "*"
-version = "2020.6.20"
-
-[[package]]
+version = "2021.10.8"
+description = "Python package for providing Mozilla's CA Bundle."
 category = "main"
-description = "Universal encoding detector for Python 2 and 3"
-name = "chardet"
 optional = false
 python-versions = "*"
-version = "3.0.4"
+
+[[package]]
+name = "charset-normalizer"
+version = "2.0.12"
+description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
+category = "main"
+optional = false
+python-versions = ">=3.5.0"
+
+[package.extras]
+unicode_backport = ["unicodedata2"]
 
 [[package]]
-category = "main"
+name = "idna"
+version = "3.3"
 description = "Internationalized Domain Names in Applications (IDNA)"
-name = "idna"
+category = "main"
 optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
-version = "2.10"
+python-versions = ">=3.5"
 
 [[package]]
+name = "paho-mqtt"
+version = "1.6.1"
+description = "MQTT version 5.0/3.1.1 client class"
 category = "main"
-description = "MQTT version 3.1.1 client class"
-name = "paho-mqtt"
 optional = false
 python-versions = "*"
-version = "1.5.0"
 
 [package.extras]
 proxy = ["pysocks"]
 
 [[package]]
-category = "main"
+name = "requests"
+version = "2.27.1"
 description = "Python HTTP for Humans."
-name = "requests"
+category = "main"
 optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
-version = "2.24.0"
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*"
 
 [package.dependencies]
 certifi = ">=2017.4.17"
-chardet = ">=3.0.2,<4"
-idna = ">=2.5,<3"
-urllib3 = ">=1.21.1,<1.25.0 || >1.25.0,<1.25.1 || >1.25.1,<1.26"
+charset-normalizer = {version = ">=2.0.0,<2.1.0", markers = "python_version >= \"3\""}
+idna = {version = ">=2.5,<4", markers = "python_version >= \"3\""}
+urllib3 = ">=1.21.1,<1.27"
 
 [package.extras]
-security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"]
-socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7)", "win-inet-pton"]
+socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"]
+use_chardet_on_py3 = ["chardet (>=3.0.2,<5)"]
 
 [[package]]
-category = "main"
+name = "urllib3"
+version = "1.26.9"
 description = "HTTP library with thread-safe connection pooling, file post, and more."
-name = "urllib3"
+category = "main"
 optional = false
 python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
-version = "1.25.9"
 
 [package.extras]
-brotli = ["brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "pyOpenSSL (>=0.14)", "ipaddress"]
-socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7,<2.0)"]
+brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"]
+secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"]
+socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
 
 [metadata]
-content-hash = "09387eb5ce8f21444b74fbfea1efef8128b5ea25e10d24aec752adcdf9873e22"
+lock-version = "1.1"
 python-versions = "^3.8"
+content-hash = "54d174759b8897ec1256f640441fbcda0b7d12f02464befe0e0f181f1fef7d26"
 
 [metadata.files]
 certifi = [
-    {file = "certifi-2020.6.20-py2.py3-none-any.whl", hash = "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41"},
-    {file = "certifi-2020.6.20.tar.gz", hash = "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3"},
+    {file = "certifi-2021.10.8-py2.py3-none-any.whl", hash = "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"},
+    {file = "certifi-2021.10.8.tar.gz", hash = "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872"},
 ]
-chardet = [
-    {file = "chardet-3.0.4-py2.py3-none-any.whl", hash = "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"},
-    {file = "chardet-3.0.4.tar.gz", hash = "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"},
+charset-normalizer = [
+    {file = "charset-normalizer-2.0.12.tar.gz", hash = "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"},
+    {file = "charset_normalizer-2.0.12-py3-none-any.whl", hash = "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"},
 ]
 idna = [
-    {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"},
-    {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"},
+    {file = "idna-3.3-py3-none-any.whl", hash = "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"},
+    {file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"},
 ]
 paho-mqtt = [
-    {file = "paho-mqtt-1.5.0.tar.gz", hash = "sha256:e3d286198baaea195c8b3bc221941d25a3ab0e1507fc1779bdb7473806394be4"},
+    {file = "paho-mqtt-1.6.1.tar.gz", hash = "sha256:2a8291c81623aec00372b5a85558a372c747cbca8e9934dfe218638b8eefc26f"},
 ]
 requests = [
-    {file = "requests-2.24.0-py2.py3-none-any.whl", hash = "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898"},
-    {file = "requests-2.24.0.tar.gz", hash = "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b"},
+    {file = "requests-2.27.1-py2.py3-none-any.whl", hash = "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d"},
+    {file = "requests-2.27.1.tar.gz", hash = "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61"},
 ]
 urllib3 = [
-    {file = "urllib3-1.25.9-py2.py3-none-any.whl", hash = "sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115"},
-    {file = "urllib3-1.25.9.tar.gz", hash = "sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527"},
+    {file = "urllib3-1.26.9-py2.py3-none-any.whl", hash = "sha256:44ece4d53fb1706f667c9bd1c648f5469a2ec925fcf3a776667042d645472c14"},
+    {file = "urllib3-1.26.9.tar.gz", hash = "sha256:aabaf16477806a5e1dd19aa41f8c2b7950dd3c746362d7e3223dbe6de6ac448e"},
 ]

          
M mqtt/pyproject.toml +2 -2
@@ 6,8 6,8 @@ authors = ["Matthew Schinckel <matt@schi
 
 [tool.poetry.dependencies]
 python = "^3.8"
-requests = "^2.24.0"
-paho-mqtt = "^1.5.0"
+requests = "*"
+paho-mqtt = "*"
 
 [tool.poetry.dev-dependencies]