Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.15 #63

Merged
merged 3 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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