core/homeassistant/components/maxcube
Unai 0706ae70dc
Simplify maxcube integration (#48403)
* Simplify maxcube integration

Device objects returned by maxcube-api dependency are stable, so
we do not need to resolve from the device address every time.

Also, refactor and unify how maxcube integration sets temperature & mode.

* Raise ValueError if missing parameters for set_temperature method

Raise a ValueError exception If set_temperature does not receive
a temperature parameter.

Also, document properly _set_target method.

* Use Type | None instead of Optional[Type] annotation

* Protect set_hvac_mode and set_preset_mode from unsupported parameters
2021-03-28 00:21:20 +01:00
..
__init__.py Upgrade to maxcube-api-0.4.1 (#47910) 2021-03-14 22:45:14 -07:00
binary_sensor.py Simplify maxcube integration (#48403) 2021-03-28 00:21:20 +01:00
climate.py Simplify maxcube integration (#48403) 2021-03-28 00:21:20 +01:00
manifest.json Upgrade to maxcube-api-0.4.1 (#47910) 2021-03-14 22:45:14 -07:00