Skip to content

Commit

Permalink
Merge pull request #15 from broox/mape-release
Browse files Browse the repository at this point in the history
Add mapeheat info to README for release
  • Loading branch information
broox authored Jan 19, 2023
2 parents beafc78 + b956df7 commit 1780810
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

A Python 3 library that allows control of connected [NuHeat Signature](http://www.nuheat.com/products/thermostats/signature-thermostat) radiant floor thermostats.

This also supports the **Mapei MapeHeat** line of smart thermostats.

* This uses the web-based NuHeat API, so it requires an external internet connection
* The API in use is not an officially published API, so it could change without notice
* Please contribute!
Expand All @@ -28,6 +30,10 @@ from nuheat import NuHeat
api = NuHeat("[email protected]", "your-secure-password")
api.authenticate()

# Initialize an API session for a specific brand
api = NuHeat("[email protected]", "your-secure-password", brand="MAPEHEAT")
api.authenticate()

# Fetch a thermostat by serial number / ID. This can be found on the NuHeat website by selecting
# your thermostat and noting the Thermostat ID
thermostat = api.get_thermostat("12345")
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
setup(
name='nuheat',
packages=['nuheat'],
version='1.0.1',
description='A Python library that allows control of connected NuHeat Signature radiant floor thermostats.',
version='1.1.0',
description='A Python library that allows control of connected NuHeat Signature and Mapei Mapeheat radiant floor thermostats.',
long_description=long_description,
long_description_content_type="text/markdown",
author='Derek Brooks',
author_email='[email protected]',
url='https://github.com/broox/python-nuheat',
download_url='https://github.com/broox/python-nuheat/archive/1.0.1.tar.gz',
download_url='https://github.com/broox/python-nuheat/archive/1.1.0.tar.gz',
license='MIT',
keywords=['nuheat', 'thermostat', 'home automation', 'python'],
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion tests/test_nuheat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestNuHeat(NuTestCase):
("MAPEHEAT", "mymapeheat.com"),
])
def test_brands(self, brand, hostname):
api = NuHeat("[email protected]", "secure-password", session_id=None, brand=brand)
api = NuHeat("[email protected]", "secure-password", brand=brand)
self.assertEqual(api._hostname, hostname)
self.assertEqual(api._api_url, f"https://{hostname}/api")
self.assertEqual(api._auth_url, f"https://{hostname}/api/authenticate/user")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_init(self, _):
])
@patch("nuheat.NuHeatThermostat.get_data")
def test_brand_urls(self, brand, hostname, _):
api = NuHeat(None, None, session_id=None, brand=brand)
api = NuHeat(None, None, brand=brand)
serial_number = "serial-123"
thermostat = NuHeatThermostat(api, serial_number)
self.assertEqual(thermostat._url, f"https://{hostname}/api/thermostat")
Expand Down

0 comments on commit 1780810

Please sign in to comment.