Skip to content

Commit

Permalink
0.0.15 (#63)
Browse files Browse the repository at this point in the history
* Fix remove wildcard for HmIP-STHD
* Add unit to hub entities
  • Loading branch information
SukramJ authored Dec 1, 2021
1 parent f2b8954 commit 3dfc654
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.0.15 (2021-12-01)
- Fix: remove wildcard for HmIP-STHD
- Add unit to hub entities

Version 0.0.14 (2021-11-30)
- Add KeyMatic
- Add HmIP-MOD-OC8
Expand Down
2 changes: 1 addition & 1 deletion hahomematic/devices/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def make_ip_thermostat(device, address, group_base_channels: [int]):
"HmIP-BWTH*": (make_ip_thermostat, []),
"HmIP-eTRV*": (make_ip_thermostat, []),
"HmIP-HEATING": (make_ip_thermostat, []),
"HmIP-STH*": (make_ip_thermostat, []),
"HmIP-STHD": (make_ip_thermostat, []),
"HmIP-WTH*": (make_ip_thermostat, []),
"HmIPW-STH*": (make_ip_thermostat, []),
"HmIPW-WTH*": (make_ip_thermostat, []),
Expand Down
9 changes: 9 additions & 0 deletions hahomematic/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ def state(self):
"""Return the state of the entity."""
return self._state

@property
def unit(self):
"""Return the unit of the entity."""
if isinstance(self._state, (bool, str)):
return None
if isinstance(self._state, (int, float)):
return '#'
return None

# pylint: disable=no-self-use
async def load_data(self):
"""Do not load data for the hub here."""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def readme():

PACKAGE_NAME = "hahomematic"
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION = "0.0.14"
VERSION = "0.0.15"

PACKAGES = find_packages(exclude=["tests", "tests.*", "dist", "build"])

Expand Down

0 comments on commit 3dfc654

Please sign in to comment.