Skip to content

Commit

Permalink
disable warnings about insecure requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Bauer committed Mar 1, 2024
1 parent 8bb15d7 commit a821bec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "smart_meter_to_openhab"
version = "0.2.9"
version = "0.2.10"
description = "Pushing data of ISKRA MT175 smart meter to openhab"
authors = ["Heiko Bauer <heiko_bauer@icloud.com>"]
repository = "https://github.com/die-bauerei/smart-meter-to-openhab"
Expand Down
4 changes: 4 additions & 0 deletions smart_meter_to_openhab/openhab.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
from statistics import median
from .interfaces import *

# disable warnings about insecure requests because ssl verification is disabled
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

class OpenhabConnection():
def __init__(self, oh_host : str, oh_user : str, oh_passwd : str, logger : Logger) -> None:
self._oh_host=oh_host
Expand Down

0 comments on commit a821bec

Please sign in to comment.