Files
core/tests/components
j-a-n 243d003acc Add Moehlenhoff Alpha2 underfloor heating system integration (#42771)
* Add Moehlenhoff Alpha2 underfloor heating system integration

* isort changes

* flake8 changes

* Do not exclude config_flow.py

* pylint changes

* Add config_flow test

* correct requirements_test_all.txt

* more tests

* Update test description

* Test connection and catch TimeoutError in async_setup_entry

* Add version to manifest file

* Remove version from manifest file

* Replace tests.async_mock.patch by unittest.mock.patch

* Update moehlenhoff-alpha2 to version 1.0.1

* Update requirements for moehlenhoff-alpha2 1.0.1

* Update moehlenhoff-alpha2 to 1.0.2

* Use async_setup_platforms

* Use async_unload_platforms

* Separate connection and devices for each entry_id

* Use async_track_time_interval to schedule updates

* Check if input is valid before checking uniqueness

* Move Exception handling to validate_input

* Catch aiohttp.client_exceptions.ClientConnectorError

* Remove translation files

* Mock TimeoutError

* Fix data update

* Replace current callback implementation with ha dispatcher

* Return False in should_poll

* Remove unused argument

* Remove CONNECTION_CLASS

* Use _async_current_entries

* Call async_schedule_update_ha_state after data update

* Remove unneeded async_setup

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Remove unneeded async_setup_platform

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Set Schema attribute host required

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Remove unused Exception class

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Update manifest.json

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* pylint constructor return type None

* Replace properties by class variables

* use pass instead of return

* Remove unused sync update method

* remove property hvac_action

* remove pass

* rework exception handling

* Update homeassistant/components/moehlenhoff_alpha2/config_flow.py

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>

* Correct indentation

* catch Exception in validate_input

* Replace HomeAssistantType with HomeAssistant

* Update to moehlenhoff-alpha2 1.0.3

* Allow to switch between heating and cooling mode

* Update moehlenhoff-alpha2 to version 1.0.4

* Update heatarea data after setting target temperature

* Support hvac_action

* Fix heatarea update with multiple bases

* Update data after setting preset mode

* Use custom preset modes like defined by device

* Fix config flow test

* Fix test_duplicate_error

* Rename property to extra_state_attributes

Rename property device_state_attributes to extra_state_attributes and
return lowercase keys in dict.

* Refactor using DataUpdateCoordinator

* Remove _attr_should_poll

* Raise HomeAssistantError on communication error

Catch HTTPError instead of broad except and reraise as HomeAssistantError

* Change DataUpdateCoordinator name to alpha2_base

* Refresh coordinator before setting data

* Raise ValueError on invalid heat area mode

* Rename heatarea to heat_area

* Set type annotation in class attribute

* Move coordinator to top

* Move exception handling to the coordinator

* Use heat_area_id directly

* Sore get_cooling() result into local var

* Add explanation of status attributes

and remove BLOCK_HC

* Fix pylint warnings

* from __future__ import annotations

* Use Platform Enum

* Move data handling to coordinator

* Remove property extra_state_attributes

* Add missing annotations

* Update moehlenhoff-alpha2 to version 1.1.2

* Rework tests based on the scaffold template

* Set also heat/cool/day/night temp with target temp

* Remove unneeded code from tests

Co-authored-by: Milan Meulemans <milan.meulemans@live.be>
2022-02-10 08:28:52 +01:00
..
2022-01-19 21:06:26 +01:00
2021-11-01 20:47:05 -07:00
2021-11-01 20:47:05 -07:00
2022-01-17 19:22:11 -08:00
2021-08-17 17:29:20 +02:00
2022-01-17 15:26:21 +01:00
2021-11-01 20:47:05 -07:00
2022-01-26 10:34:33 +01:00
2021-11-01 20:47:05 -07:00
2022-02-05 14:19:37 +01:00
2021-11-01 20:47:05 -07:00
2022-02-08 14:32:02 -08:00
2022-02-08 14:32:02 -08:00
2021-11-01 20:47:05 -07:00
2021-09-13 18:18:21 +02:00
2022-01-29 16:01:00 +02:00
2021-12-27 19:50:43 +01:00
2021-11-29 20:00:39 -05:00
2022-01-05 15:34:33 +01:00
2021-11-01 20:47:05 -07:00
2021-12-12 14:09:45 -08:00
2021-12-20 16:18:58 +01:00
2022-01-05 15:34:33 +01:00
2021-12-15 23:25:40 +02:00
2022-01-20 22:09:36 -08:00
2022-01-30 20:12:44 -08:00
2021-11-01 20:47:05 -07:00
2021-12-15 23:25:40 +02:00
2022-01-05 15:34:33 +01:00
2021-11-01 20:47:05 -07:00
2021-02-28 14:16:37 +01:00
2021-11-01 20:47:05 -07:00
2022-01-23 00:17:32 -08:00
2022-01-18 11:02:43 -08:00
2022-01-11 21:28:13 +01:00
2022-01-22 16:38:38 -08:00
2021-12-22 09:16:37 +01:00
2022-01-11 21:28:13 +01:00
2021-11-01 20:47:05 -07:00
2021-11-01 20:47:05 -07:00
2022-02-08 22:02:45 +01:00
2022-01-05 15:34:33 +01:00
2022-01-27 10:43:23 -06:00
2021-10-14 10:03:38 -07:00
2022-01-14 16:35:35 +01:00
2021-11-01 20:47:05 -07:00
2022-01-26 10:58:06 +01:00
2022-02-08 10:03:27 +01:00
2021-11-01 20:47:05 -07:00
2022-01-20 15:03:14 +01:00
2022-01-25 20:20:11 -10:00
2022-02-06 16:50:44 -06:00
2021-11-18 15:56:22 -08:00
2021-06-11 13:35:03 +02:00
2022-01-14 22:07:15 +01:00
2021-03-19 15:54:07 +01:00
2021-12-31 09:44:35 -10:00
2022-01-13 15:32:39 +01:00
2022-01-31 17:04:46 -08:00
2022-02-04 10:50:24 +01:00