1
mirror of https://github.com/home-assistant/core synced 2024-08-28 03:36:46 +02:00
Commit Graph

59 Commits

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

* Fix more imports
2023-02-09 20:15:37 +01:00
Erik Montnemery
1d64ba9d34
Sort manifests 6 (#87027) 2023-02-08 20:38:43 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
Franck Nijhof
baef267f33
String formatting and max line length - Part 3 (#84394) 2022-12-22 13:35:47 +01:00
epenet
8b867d612f
Use UnitOfTemperature in climate entities [m-s] (#83131) 2022-12-02 19:56:18 +01:00
Franck Nijhof
a8f1cc0d33
Remove unneeded guards from (async_)add_entities call (#80471) 2022-10-17 21:11:58 +02:00
epenet
6affd9c6fb
Import climate constants from root [m-z] (#78178) 2022-09-10 23:42:28 +02:00
epenet
6355e682fa
Improve entity type hints [m] (#77816) 2022-09-05 10:59:36 +02:00
epenet
3c097d5672
Use climate enums in maxcube (#70688) 2022-04-26 09:35:49 +02:00
epenet
5e2cc2b9b0
Use EntityFeature enum in components (m**) (#69414)
* Use EntityFeature in melcloud

* Use EntityFeature in mystrom

* Use EntityFeature in mysensors

* Use EntityFeature in myq

* Use EntityFeature in mpd

* Use EntityFeature in monoprice

* Use EntityFeature in moehlenhoff_alpha2

* Use EntityFeature in modern_forms

* Use EntityFeature in modbus

* Use EntityFeature in melissa

* Use EntityFeature in mediaroom

* Use EntityFeature in maxcube

* Use EntityFeature in manual_mqtt

* Fix maxcube tests

* Revert "Use EntityFeature in modbus"

This reverts commit 56cf9d900d.

* Revert "Use EntityFeature in myq"

This reverts commit 44a31b1a03.

* Revert "Use EntityFeature in mystrom"

This reverts commit 7260ee0384.

* Revert "Revert "Use EntityFeature in modbus""

This reverts commit 916a612a60.

* Revert "Revert "Use EntityFeature in myq""

This reverts commit a6be42fa17.
2022-04-06 17:33:41 +02:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
Erik Montnemery
2eab3c8de1
Import persistent notification (part 3) (#63900) 2022-01-11 09:51:16 -08:00
epenet
24314f1b11
Use Platform enum in load_platform [m-z] (#63751) 2022-01-10 10:45:11 +01:00
epenet
5196b75ed6
Add setup type hints [m] (#63456)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 15:11:38 +01:00
epenet
6f4b25950c
Add climate setup type hints [m-z] (#63279)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 13:09:43 +01:00
epenet
33e926371f
Add init type hints [m] (#63189)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:28:14 +01:00
Peeter N
571b245b7e
Add battery entity for Maxcube devices (#58699) 2021-12-17 15:02:28 +01:00
Peeter N
5b5b79f0e5
Set MaxCube Climate properties using class _attr_ properties (#58910) 2021-11-14 18:52:35 +01:00
Marc Mueller
eab235173b
Use assignment expressions 28 (#58189) 2021-10-22 14:06:04 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) (#53685) 2021-07-30 01:20:03 +02:00
Unai
9d08178ed1
Upgrade maxcube-api dependency to 0.4.3 (#49982)
This new version only contains improvements in logs
to try to debug issue #49482
2021-05-03 10:22:47 +02:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
Unai
aaa600e00a
Add unique-ids to maxcube component (#49196) 2021-04-14 22:19:24 +02:00
Unai
ff8e4fb77f
Upgrade maxcube-api to 0.4.2 (#49106)
Upgrade to maxcube-api 0.4.2 to fix pending issues in HA 2021.4.x:
 - Interpret correctly S command error responses (https://github.com/home-assistant/core/issues/49075)
 - Support application timezone configuration (https://github.com/home-assistant/core/issues/49076)
2021-04-13 00:14:29 +02:00
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
unaiur
3fb323b745
Fix maxcube temperature for thermostat auto mode (#48047)
maxcube-api dependency now supports using None as the
target temperature: in that case, it uses the scheduled
temperature in auto mode and current temperature in all
other modes.

We will use that feature when changing hvac_mode to auto and
selecting PRESET_NONE.
2021-03-22 13:13:06 +01:00
unaiur
e91be3f9f5
Upgrade to maxcube-api-0.4.1 (#47910)
This new version implements a workaround for a hardware bug
that causes a factory reset of the full MAX! service.

See https://github.com/hackercowboy/python-maxcube-api/issues/12
for more details.
2021-03-14 22:45:14 -07:00
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() (#47758) 2021-03-11 20:11:25 +01:00
unaiur
10eca5b986
Fix maxcube thermostat transition from off to heat mode (#47643)
Transition from HVAC_MODE_OFF to HVAC_MODE_HEAT are not executed because
target temperature is kept at OFF_TEMPERATURE, turning it into a no-op.

This change ensures that we increase the target temperature to at least
the minimum temperature when transitioning to HVAC_MODE_HEAT mode.
2021-03-08 15:14:24 -08:00
unaiur
ab518a7755
Migrate to maxcube-api 0.3.0 version (#45126)
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" (#42859)
This reverts commit 898f50386f.
2020-11-05 09:45:29 +01:00
Andreas Billmeier
898f50386f
Fix broken maxcube component (#42674) 2020-11-04 10:17:40 +01:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) (#41600) 2020-10-12 16:59:05 +02:00
springstan
61d9067a49
Return empty dictionary at first for attributes (#41348) 2020-10-06 18:08:53 +02:00
springstan
513f03eb1f
Return attribute dict directly without temporary variable v2 (#41271) 2020-10-06 16:55:16 +02:00
Brett
b6b85d3e0c
Fix reported temperatures in Maxcube (#41259) 2020-10-06 10:06:54 +02:00
springstan
e75557c1f5
Remove unnecessary should poll from binary sensor classes (#41221) 2020-10-04 22:11:46 +02:00
springstan
f93c0c5cd3
Use DEVICE_CLASS_WINDOW constant in various integrations (#39949) 2020-09-11 21:24:23 -05:00
Franck Nijhof
4cf186a47e
Small collection of random styling tweaks, fixes and Pythonism (#35390) 2020-05-09 00:10:17 +02:00
Erik Montnemery
29bc93ea98
Rename ClimateDevice to ClimateEntity (#34591) 2020-04-25 18:04:03 +02:00
Erik Montnemery
b022e08db9
Rename BinarySensorDevice to BinarySensorEntity (#34462)
* 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
Oleksii Serdiuk
19a0a7029f
Improve MAX! Cube integration (#28845)
* maxcube: Make it possible to return to auto mode

It's currently not possible to switch back to auto (schedule) mode after
changing to manual or vacation. Add `PRESET_NONE` to list of presets
that will return thermostat back into auto (schedule) mode.

Additionally, use `PRESET_AWAY` instead of custom preset name for
vacation mode.

* maxcube: Provide `hvac_action` based on valve state

Not supported for wall thermostats.

* maxcube: Add support for Comfort, Eco, Off and On modes

Off is mapped to HVAC_OFF, while On - to HVAC_HEAT.

* maxcube: Add `hvac_action` support for wall thermostats

We check all thermostats in the same room as the wall thermostat. If at
least one of them has its valve open - the room is being heated.

* maxcube: Expose valve position as state attribute

Also fix a small logical error in `hvac_action`.

* maxcube: Fix linter errors and formatting

* maxcube: Adjust mapping between MAX! and HA modes and presets

MAX! 'Manual' mode now corresponds to 'Heating' mode of HA. MAX! 'Eco'
and 'Comfort' temperatures are 'Heating' mode presets. MAX! 'On' mode is
now a 'Heating' preset, too.

* maxcube: Address review comments
2020-04-16 12:31:36 +02:00
Franck Nijhof
6f1900c6f4
Replace OSError aliases with OSError (#33655) 2020-04-04 22:09:11 +02:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields (#33595) 2020-04-03 12:58:19 -07:00
springstan
ba0aaeeddb
Use f-strings in integrations starting with "M" (#32271)
* 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
Ville Skyttä
3018e8ff47
Use time.monotonic instead of time.time where appropriate (#31780) 2020-02-13 22:57:07 +01:00
Franck Nijhof
dc02c28891 Correct names in manifests (M-P) (#30541) 2020-01-07 13:28:35 +01:00
Franck Nijhof
a84741392b
Format all manifests with prettier (#30521) 2020-01-06 21:28:23 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling (#30500)
* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
springstan
849d8c885d Move imports to top for maxcube (#29393) 2019-12-04 11:15:53 +01:00