Skip to content

Instantly share code, notes, and snippets.

@CoMPaTech
Created April 26, 2020 09:15
Show Gist options
  • Save CoMPaTech/2c581665c490bb4c2b33f13f7ae961f2 to your computer and use it in GitHub Desktop.
Save CoMPaTech/2c581665c490bb4c2b33f13f7ae961f2 to your computer and use it in GitHub Desktop.
HA 109 for plugwise-beta
diff --git a/custom_components/plugwise-beta/climate.py b/custom_components/plugwise-beta/climate.py
index ae1a1cc..41a6e6b 100644
--- a/custom_components/plugwise-beta/climate.py
+++ b/custom_components/plugwise-beta/climate.py
@@ -3,7 +3,7 @@
import logging
from typing import Dict
-from homeassistant.components.climate import ClimateDevice
+from homeassistant.components.climate import ClimateEntity
from homeassistant.components.climate.const import (
CURRENT_HVAC_COOL,
CURRENT_HVAC_HEAT,
@@ -71,7 +71,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
async_add_entities(devices, True)
-class PwThermostat(ClimateDevice):
+class PwThermostat(ClimateEntity):
"""Representation of an Plugwise thermostat."""
def __init__(self, api, updater, name, dev_id, loc_id, model, min_temp, max_temp):
diff --git a/hacs.json b/hacs.json
index 10bfba2..bf7b425 100644
--- a/hacs.json
+++ b/hacs.json
@@ -1,6 +1,6 @@
{
"name": "Plugwise beta custom component",
- "domains": ["climate","sensor","water_heater","switch"],
+ "domains": ["binary_sensor","climate","sensor","switch"],
- "homeassistant": "0.106.2",
+ "homeassistant": "0.109.0",
"render_readme": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment