From b78ef700f7ca19ecd89f3033e38e488b3f152e6d Mon Sep 17 00:00:00 2001 From: Mikkel Pilehave Jensen Date: Sat, 3 Dec 2022 21:38:34 +0100 Subject: [PATCH 1/4] Add get_hostname method --- pytouchline/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pytouchline/__init__.py b/pytouchline/__init__.py index ec6de62..a6f4e78 100644 --- a/pytouchline/__init__.py +++ b/pytouchline/__init__.py @@ -48,6 +48,13 @@ def get_number_of_devices(self, ip_address): response = self._request_and_receive_xml(request) return self._parse_number_of_devices(response) + def get_hostname(self): + hostname_items = [] + hostname_items.append("hw.HostName") + request = self._get_touchline_request(hostname_items) + response = self._request_and_receive_xml(request) + return self._parse_number_of_devices(response) + def get_status(self): status_items = [] status_items.append("R0.SystemStatus") From eff6aabefdf25a1f2f3288fb5635b67e9f77e454 Mon Sep 17 00:00:00 2001 From: Mikkel Pilehave Jensen Date: Tue, 24 Jan 2023 13:57:43 +0100 Subject: [PATCH 2/4] Update setup.py --- setup.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 8c74afa..5ea5fa8 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,14 @@ from distutils.core import setup setup( - name = 'pytouchline', - packages = ['pytouchline'], - version = '0.7', + name = 'pytouchlineplus', + packages = ['pytouchlineplus'], + version = '0.8', description = 'A Roth Touchline interface library', - author = 'Aksel Bondoe', - author_email = 'aksel.bondoe@gmail.com', + author = 'Mikkel Pilehave Jensen', + author_email = 'pilehave@gmail.com', license='MIT', - url = 'https://github.com/abondoe/pytouchline', - download_url = 'https://github.com/abondoe/pytouchline/archive/0.7.tar.gz', + url = 'https://github.com/pilehave/pytouchlineplus', + download_url = 'https://github.com/pilehave/pytouchlineplus/archive/0.8.tar.gz', keywords = ['Roth', 'Touchline', 'Home Assistant', 'hassio', "Heat pump"], classifiers = [ 'Development Status :: 3 - Alpha', @@ -17,4 +17,4 @@ 'Programming Language :: Python :: 3', ], install_requires=['httplib2', 'cchardet'] -) \ No newline at end of file +) From aaf8f4ee6db6d61c2c4a0d11e077531c2dafc532 Mon Sep 17 00:00:00 2001 From: Mikkel Pilehave Jensen Date: Tue, 24 Jan 2023 13:59:14 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e98cf4a..3934b34 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A simple helper library for controlling a Roth Touchline heat pump controller ```py -from pytouchline import PyTouchline +from pytouchlineplus import PyTouchline py_touchline = PyTouchline() @@ -14,4 +14,4 @@ device1.update() print(device1.get_name()) print(device1.get_current_temperature()) print(device1.get_target_temperature()) -``` \ No newline at end of file +``` From afe13a7e391df3fd7cb527a0ad573f636adf5c61 Mon Sep 17 00:00:00 2001 From: Mikkel Pilehave Jensen Date: Tue, 24 Jan 2023 14:00:12 +0100 Subject: [PATCH 4/4] Update __init__.py --- pytouchline/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytouchline/__init__.py b/pytouchline/__init__.py index a6f4e78..8681fb0 100644 --- a/pytouchline/__init__.py +++ b/pytouchline/__init__.py @@ -2,7 +2,7 @@ import cchardet as chardet import xml.etree.ElementTree as ET -__author__ = 'abondoe' +__author__ = 'pilehave' class PyTouchline(object): @@ -253,4 +253,4 @@ def get_desc(self): return self._desc def get_type(self): - return self._type \ No newline at end of file + return self._type