Skip to content

Commit

Permalink
Added raw running state
Browse files Browse the repository at this point in the history
  • Loading branch information
w1ll1am23 committed Jan 25, 2021
1 parent 32489d8 commit e477bf0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 5 additions & 0 deletions src/pyeconet/equipment/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
4 changes: 2 additions & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -10,4 +10,4 @@
tests_require=['mock'],
test_suite='tests',
packages=find_packages(exclude=["dist", "*.test", "*.test.*", "test.*", "test"]),
zip_safe=True)
zip_safe=True)

0 comments on commit e477bf0

Please sign in to comment.