Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8 from Devotics/feature/new-heatzy-pilote-version…
Browse files Browse the repository at this point in the history
…-compatibility

Add support for the new Heatzy Pilote product key
  • Loading branch information
Dramloc authored Jan 1, 2020
2 parents 8fce8d6 + 9b27650 commit 67e37d4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You can find installation instructions for specific Home Assistant versions belo

| Home Assistant version | Heatzy component version |
| ----------------------- | --------------------------------------------------------- |
| 0.96 and higher | [3.0.0](#installation-for-home-assistant-096-and-higher) |
| 0.96 and higher | [master](#installation-for-home-assistant-096-and-higher) |
| 0.89 to 0.95 | [2.0.1](#installation-for-home-assistant-089-to-095) |
| 0.88 and lower | [1.1.1](#installation-for-home-assistant-088-and-lower) |

Expand Down
2 changes: 1 addition & 1 deletion heatzy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""Heatzy platform configuration (left empty for now)"""
"""Heatzy platform configuration (left empty for now)"""
11 changes: 7 additions & 4 deletions heatzy/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@

from .api import HeatzyAPI
from .authenticator import HeatzyAuthenticator
from .const import (HEATZY_PILOTE_V1_PRODUCT_KEY, HEATZY_PILOTE_V2_PRODUCT_KEY,
STORAGE_KEY, STORAGE_VERSION)
from .const import STORAGE_KEY, STORAGE_VERSION
from .pilote_v1 import HeatzyPiloteV1Thermostat
from .pilote_v2 import HeatzyPiloteV2Thermostat

PRODUCT_KEY_TO_DEVICE_IMPLEMENTATION = {
HEATZY_PILOTE_V1_PRODUCT_KEY: HeatzyPiloteV1Thermostat,
HEATZY_PILOTE_V2_PRODUCT_KEY: HeatzyPiloteV2Thermostat,
# Heatzy Pilote v1
'9420ae048da545c88fc6274d204dd25f': HeatzyPiloteV1Thermostat,
# Heatzy Pilote v2
'51d16c22a5f74280bc3cfe9ebcdc6402': HeatzyPiloteV2Thermostat,
'b9a67b6ce24b437d9794103fd317e627': HeatzyPiloteV2Thermostat,
'4fc968a21e7243b390e9ede6f1c6465d': HeatzyPiloteV2Thermostat
}

_LOGGER = logging.getLogger(__name__)
Expand Down
2 changes: 0 additions & 2 deletions heatzy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
STORAGE_KEY = 'heatzy_auth'
HEATZY_APPLICATION_ID = 'c70a66ff039d41b4a220e198b0fcc8b3'
HEATZY_API_URL = 'https://euapi.gizwits.com/app'
HEATZY_PILOTE_V1_PRODUCT_KEY = '9420ae048da545c88fc6274d204dd25f'
HEATZY_PILOTE_V2_PRODUCT_KEY = '51d16c22a5f74280bc3cfe9ebcdc6402'

0 comments on commit 67e37d4

Please sign in to comment.