Commit graph

19 commits

Author SHA1 Message Date
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
a8f1cc0d33
Remove unneeded guards from (async_)add_entities call () 2022-10-17 21:11:58 +02:00
epenet
6355e682fa
Improve entity type hints [m] () 2022-09-05 10:59:36 +02:00
epenet
5196b75ed6
Add setup type hints [m] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 15:11:38 +01:00
Peeter N
571b245b7e
Add battery entity for Maxcube devices () 2021-12-17 15:02:28 +01:00
Unai
aaa600e00a
Add unique-ids to maxcube component () 2021-04-14 22:19:24 +02:00
Unai
0706ae70dc
Simplify maxcube integration ()
* 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
unaiur
ab518a7755
Migrate to maxcube-api 0.3.0 version ()
Upgrade maxcube-api to solve bugs fixed in last 3 years.
2021-01-14 11:33:02 +01:00
Andreas Billmeier
f6751de262
Revert "Fix broken maxcube component" ()
This reverts commit 898f50386f.
2020-11-05 09:45:29 +01:00
Andreas Billmeier
898f50386f
Fix broken maxcube component () 2020-11-04 10:17:40 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) () 2020-10-12 16:59:05 +02:00
springstan
e75557c1f5
Remove unnecessary should poll from binary sensor classes () 2020-10-04 22:11:46 +02:00
springstan
f93c0c5cd3
Use DEVICE_CLASS_WINDOW constant in various integrations () 2020-09-11 21:24:23 -05:00
Erik Montnemery
b022e08db9
Rename BinarySensorDevice to BinarySensorEntity ()
* Rename BinarySensorDevice to BinarySensorEntity

* Tweak

* Move deprecation warning to __new__, add test

* Move deprecation warning back to __init__

* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
springstan
ba0aaeeddb
Use f-strings in integrations starting with "M" ()
* Use f-strings in integrations starting with "M"

* Format mqtt light init with black

* Fix lint error

* Fix pylint error

* Restore constants

* Update homeassistant/components/mqtt/discovery.py

* Update homeassistant/components/mqtt/discovery.py

* Update homeassistant/components/mqtt/discovery.py

* Update homeassistant/components/mqtt/discovery.py

* Format with Black
2020-03-10 23:34:54 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ()
* Use relative imports inside integrations

* Lint

* Fix automation tests

* Fix scene imports
2019-03-20 22:56:46 -07:00
Fabian Affolter
161c368c9d Update file header ()
* Update file header

* Update __init__.py
2019-02-13 20:35:12 -08:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ()
* Consolidate all components with platforms

* Organize tests

* Fix more tests

* Fix Verisure tests

* one final test fix

* Add change

* Fix coverage
2019-02-02 07:13:16 -08:00
Renamed from homeassistant/components/binary_sensor/maxcube.py (Browse further)