From e477bf0c5cf30b3038532532e85debe782c6188b Mon Sep 17 00:00:00 2001 From: w1ll1am23 Date: Sun, 24 Jan 2021 21:10:03 -0500 Subject: [PATCH] Added raw running state --- CHANGELOG.md | 3 +++ src/pyeconet/equipment/water_heater.py | 5 +++++ src/setup.py | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dac9fb..014bbe4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change log +## 0.1.12 +- Added raw running state + ## 0.1.11 - Fixed session error and added water heater energy type diff --git a/src/pyeconet/equipment/water_heater.py b/src/pyeconet/equipment/water_heater.py index 7b9306f..f377a79 100644 --- a/src/pyeconet/equipment/water_heater.py +++ b/src/pyeconet/equipment/water_heater.py @@ -88,6 +88,11 @@ def running(self) -> bool: """Return if the water heater is running or not""" return self._equipment_info.get("@RUNNING") != "" + @property + def running_state(self) -> str: + """Return if the water heater is running or not""" + return self._equipment_info.get("@RUNNING") + @property def tank_hot_water_availability(self) -> Union[int, None]: """Return the hot water availability""" diff --git a/src/setup.py b/src/setup.py index 7d8d621..9671c67 100644 --- a/src/setup.py +++ b/src/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='pyeconet', - version='0.1.11', + version='0.1.12', description='Interface to the unofficial EcoNet API', url='http://github.com/w1ll1am23/pyeconet', author='William Scanlon', @@ -10,4 +10,4 @@ tests_require=['mock'], test_suite='tests', packages=find_packages(exclude=["dist", "*.test", "*.test.*", "test.*", "test"]), - zip_safe=True) \ No newline at end of file + zip_safe=True)