From 3299b36b19247080a3f6573a8dfa60c0beb1e728 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 25 Apr 2020 09:00:19 +0200 Subject: [PATCH 1/4] Rename ClimateDevice to ClimateEntity --- docs/entity_climate.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/entity_climate.md b/docs/entity_climate.md index ddda8e9ceae..27eb2f5624c 100644 --- a/docs/entity_climate.md +++ b/docs/entity_climate.md @@ -3,7 +3,7 @@ title: Climate Entity sidebar_label: Climate --- -A climate entity is a device that controls temperature, humidity, or fans, such as A/C systems and humidifiers. Derive entity platforms from [`homeassistant.components.climate.ClimateDevice`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/climate/__init__.py) +A climate entity is a device that controls temperature, humidity, or fans, such as A/C systems and humidifiers. Derive entity platforms from [`homeassistant.components.climate.ClimateEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/climate/__init__.py) ## Properties @@ -137,7 +137,7 @@ class MyClimateDevice(ClimateDevice): ### Set preset mode ```python -class MyClimateDevice(ClimateDevice): +class MyClimateDevice(ClimateEntity): # Implement one of these methods. def set_preset_mode(self, preset_mode): @@ -150,7 +150,7 @@ class MyClimateDevice(ClimateDevice): ### Set fan mode ```python -class MyClimateDevice(ClimateDevice): +class MyClimateDevice(ClimateEntity): # Implement one of these methods. def set_fan_mode(self, fan_mode): @@ -163,7 +163,7 @@ class MyClimateDevice(ClimateDevice): ### Set humidity ```python -class MyClimateDevice(ClimateDevice): +class MyClimateDevice(ClimateEntity): # Implement one of these methods. def set_humidity(self, humidity): @@ -176,7 +176,7 @@ class MyClimateDevice(ClimateDevice): ### Set swing mode ```python -class MyClimateDevice(ClimateDevice): +class MyClimateDevice(ClimateEntity): # Implement one of these methods. def set_swing_mode(self, swing_mode): @@ -189,7 +189,7 @@ class MyClimateDevice(ClimateDevice): ### Set temperature ```python -class MyClimateDevice(ClimateDevice): +class MyClimateDevice(ClimateEntity): # Implement one of these methods. def set_temperature(self, **kwargs): @@ -202,7 +202,7 @@ class MyClimateDevice(ClimateDevice): ### Control auxiliary heater ```python -class MyClimateDevice(ClimateDevice): +class MyClimateDevice(ClimateEntity): # Implement one of these methods. def turn_aux_heat_on(self): From 8ce5823f58ef09f5ab84d2cf147b1d4992510fa5 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 25 Apr 2020 09:36:05 +0200 Subject: [PATCH 2/4] tweak --- docs/entity_climate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/entity_climate.md b/docs/entity_climate.md index 27eb2f5624c..c10190387ba 100644 --- a/docs/entity_climate.md +++ b/docs/entity_climate.md @@ -3,7 +3,7 @@ title: Climate Entity sidebar_label: Climate --- -A climate entity is a device that controls temperature, humidity, or fans, such as A/C systems and humidifiers. Derive entity platforms from [`homeassistant.components.climate.ClimateEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/climate/__init__.py) +A climate entity controls temperature, humidity, or fans, such as A/C systems and humidifiers. Derive entity platforms from [`homeassistant.components.climate.ClimateEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/climate/__init__.py) ## Properties From 276d15cde7df57fcef3b4b68fb2287d63948cc34 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Sat, 25 Apr 2020 18:03:40 +0200 Subject: [PATCH 3/4] Wording --- docs/entity_climate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/entity_climate.md b/docs/entity_climate.md index c10190387ba..be01fd6971b 100644 --- a/docs/entity_climate.md +++ b/docs/entity_climate.md @@ -3,7 +3,7 @@ title: Climate Entity sidebar_label: Climate --- -A climate entity controls temperature, humidity, or fans, such as A/C systems and humidifiers. Derive entity platforms from [`homeassistant.components.climate.ClimateEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/climate/__init__.py) +A climate entity controls temperature, humidity, or fans, such as A/C systems and humidifiers. Derive a platform entity from [`homeassistant.components.climate.ClimateEntity`](https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/climate/__init__.py) ## Properties From d1fb9bb500445d0a738e4f80f3ab90f597c85bc7 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sun, 26 Apr 2020 17:54:05 +0200 Subject: [PATCH 4/4] Rename MyClimateDevice to MyClimateEntity --- docs/entity_climate.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/entity_climate.md b/docs/entity_climate.md index be01fd6971b..81d3b0af1ea 100644 --- a/docs/entity_climate.md +++ b/docs/entity_climate.md @@ -124,7 +124,7 @@ Supported features constants are combined using the bitwise or (`|`) operator. ### Set hvac mode ```python -class MyClimateDevice(ClimateDevice): +class MyClimateEntity(ClimateEntity): # Implement one of these methods. def set_hvac_mode(self, hvac_mode): @@ -137,7 +137,7 @@ class MyClimateDevice(ClimateDevice): ### Set preset mode ```python -class MyClimateDevice(ClimateEntity): +class MyClimateEntity(ClimateEntity): # Implement one of these methods. def set_preset_mode(self, preset_mode): @@ -150,7 +150,7 @@ class MyClimateDevice(ClimateEntity): ### Set fan mode ```python -class MyClimateDevice(ClimateEntity): +class MyClimateEntity(ClimateEntity): # Implement one of these methods. def set_fan_mode(self, fan_mode): @@ -163,7 +163,7 @@ class MyClimateDevice(ClimateEntity): ### Set humidity ```python -class MyClimateDevice(ClimateEntity): +class MyClimateEntity(ClimateEntity): # Implement one of these methods. def set_humidity(self, humidity): @@ -176,7 +176,7 @@ class MyClimateDevice(ClimateEntity): ### Set swing mode ```python -class MyClimateDevice(ClimateEntity): +class MyClimateEntity(ClimateEntity): # Implement one of these methods. def set_swing_mode(self, swing_mode): @@ -189,7 +189,7 @@ class MyClimateDevice(ClimateEntity): ### Set temperature ```python -class MyClimateDevice(ClimateEntity): +class MyClimateEntity(ClimateEntity): # Implement one of these methods. def set_temperature(self, **kwargs): @@ -202,7 +202,7 @@ class MyClimateDevice(ClimateEntity): ### Control auxiliary heater ```python -class MyClimateDevice(ClimateEntity): +class MyClimateEntity(ClimateEntity): # Implement one of these methods. def turn_aux_heat_on(self):