From e43d5bc960d37b310daa88bbf52164321b592db5 Mon Sep 17 00:00:00 2001 From: wbrgh Date: Mon, 9 Oct 2023 20:02:48 +0200 Subject: [PATCH 1/2] Update app_builder.py --- nuimo_openhab/app_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuimo_openhab/app_builder.py b/nuimo_openhab/app_builder.py index bab09b6..f0fd43b 100644 --- a/nuimo_openhab/app_builder.py +++ b/nuimo_openhab/app_builder.py @@ -5,7 +5,7 @@ class OpenHabAppBuilder: - def __init__(self, openhab : openHAB, sitemapName = "nuimo"): + def __init__(self, openhab : OpenHAB, sitemapName = "nuimo"): self.openhab = openhab self.sitemapName = sitemapName self.sitemap = dict() @@ -93,4 +93,4 @@ def compare_sitemap_config(self, sitemap1, sitemap2): logging.debug("Sitemap configuration is do not match. Value '%s' is differs from '%s", sitemap1, sitemap2) return False - return True \ No newline at end of file + return True From 512468b7786f2cdfc1790ff3b7df80dbfc0cee42 Mon Sep 17 00:00:00 2001 From: wbrgh Date: Mon, 9 Oct 2023 20:03:52 +0200 Subject: [PATCH 2/2] Update listener.py --- nuimo_openhab/listener.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nuimo_openhab/listener.py b/nuimo_openhab/listener.py index 5e9a94b..acb28ed 100644 --- a/nuimo_openhab/listener.py +++ b/nuimo_openhab/listener.py @@ -6,7 +6,7 @@ import nuimo import requests -from openhab import openHAB +from openhab import OpenHAB import nuimo_menue from nuimo_openhab.util import config @@ -14,7 +14,7 @@ class OpenHabItemListener(nuimo_menue.model.AppListener): - def __init__(self, openhab: openHAB): + def __init__(self, openhab: OpenHAB): self.openhab = openhab self.widgets = [] self.sliderWidgets = [] @@ -156,4 +156,4 @@ def handleSliders(self, rotationOffset): if widget["sendFrequency"] != 0: threading.Timer(widget["sendFrequency"]/1000, self.handleSliders, [0]).start() - return self.lastSliderState \ No newline at end of file + return self.lastSliderState