Commit Graph
9116 Commits
Author SHA1 Message Date
epenetandGitHub 9315f3bdd9 Use EntityDescription - renault (#55061)
* Cleanup sensor.py

* Add EntityDescription

* Add checks for state attributes

* Fix pylint

* Simplify checks

* Add icon checks

* Update data type

* Use mixin for required keys, and review class initialisation

* Add constraint to TypeVar("T")

* Enable lambda for icon handling

* Enable lambda for value handling

* Enable lambda for value handling
2021-08-25 23:15:49 +02:00
J. Nick KostonandGitHub 35d943ba56 Add services to bond to start and stop increase/decrease brightness (#55006) 2021-08-25 22:07:31 +02:00
J. Nick KostonandGitHub e6e8d7eded Convert color temperature to visible color in lights (#55219) 2021-08-25 21:56:36 +02:00
59d401e7b7 Add Nanoleaf reauth flow (#55217)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-08-25 21:56:10 +02:00
fb28665cfa Add "cron patterns" to define utility_meter cycles (#46795)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-25 14:52:39 -05:00
Raman GuptaandGitHub 2f7a7b0309 Add template functions to get area_id and area_name (#54248)
* Add template function to get area_id

* fix int bug

* Prefer area name lookup

* remove unnecessary checks

* fix import

* Add area_name function

* change behavior to fail in ambiguous scenarios

* Revert lotto winning exception checking

* review comments

* try except else
2021-08-25 15:16:51 -04:00
7c5a0174ba Add an energy solar platform for solar forecasts (#54576)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-25 11:37:03 -07:00
Raman GuptaandGitHub e9625e4b7a Add number platform to template integration (#54789) 2021-08-25 11:34:20 -07:00
Raman GuptaandGitHub 8407ad01d4 Add select platform to template integration (#54835) 2021-08-25 11:21:24 -07:00
Milan MeulemansandGitHub d4b506e5e4 Add tests for Rituals init, sensor and switch (#52406) 2021-08-25 12:25:39 -05:00
Giuseppe IannelloandGitHub ec3bfcea46 Support for EnergyStorageTrait for vacuum cleaners (#55134) 2021-08-25 10:12:31 -07:00
Milan MeulemansandGitHub 5c6451d11b Address review of Nanoleaf Config Flow (#55215) 2021-08-25 17:41:48 +02:00
jan iversenandGitHub 3a0a8da648 Change logging to do rollover() instead of rotate() (#55177)
* Change to rollover from rotate.

* Remove test log files.
2021-08-25 17:32:48 +02:00
J. Nick KostonandGitHub bd0af57ef2 Support device triggers in HomeKit (#53869) 2021-08-25 16:47:39 +02:00
Erik MontnemeryandGitHub 20d8c4da90 Report average of position and tilt_position for cover groups (#52713) 2021-08-25 16:12:29 +02:00
Marc MuellerandGitHub 1224d68d05 Remove redundant str cast - sensor value conversion (#55204) 2021-08-25 15:01:17 +02:00
Daniel Hjelseth HøyerandGitHub 7dd169b48e Utility meter, add STATE_CLASS_TOTAL_INCREASING (#54871)
* Utility meter, STATE_CLASS_TOTAL_INCREASING

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* update test

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* update test

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-08-25 14:03:30 +02:00
Jan BouwhuisandGitHub f4fbc083e6 Tasmota - Cleanup tests involving legacy fan speed (#55202) 2021-08-25 13:54:36 +02:00
Marc MuellerandGitHub 7f203069a4 Use EntityDescription - mhz19 (#55187)
* Use EntityDescription - mhz19

* Fix tests
2021-08-25 13:52:59 +02:00
Erik MontnemeryandGitHub bb42eb1176 Warn if a sensor with state_class_total has a decreasing value (#55197) 2021-08-25 13:01:55 +02:00
Erik MontnemeryandGitHub ffbd2d79c8 Generate statistics for all sensors with a supported state_class (#54882)
* Generate statistics for all sensors

* Fix bugs, add tests

* Address review comments

* Cleanup warnings

* Simplify tests

* Simplify selection of statistics

* Fix tests
2021-08-25 13:00:35 +02:00
Børge NordliandGitHub 0d654fa6b3 Extract attribute names out of vol.Optional when validating entity service schema (#55157) 2021-08-25 13:00:11 +02:00
jan iversenandGitHub 7df8d0c973 Check for duplicate host/port and integration name in modbus (#54664)
* Check for duplicate host/port and integration name.

* Change to use set().

* Please CI.

* Add basic tests.
2021-08-25 12:29:00 +02:00
MeowandGitHub a23f4dac62 Add service to clear completed shoppinglist items (#55032) 2021-08-25 12:26:37 +02:00
51361fbd2b Add configurable state_class to Modbus sensors (#54103)
* add configurable state_class

* Add test of new parameter.

Co-authored-by: jan Iversen <jancasacondor@gmail.com>
2021-08-25 11:50:54 +02:00
Klaas SchouteandGitHub 49041b1469 Add account type to Forecast.Solar integration (#55175) 2021-08-25 11:16:23 +02:00
Marc MuellerandGitHub 4036ba82fe Remove temperature conversion - mhz19 (#55164) 2021-08-25 10:29:59 +02:00
1e05c81fe6 Fix recorder test (#55169)
Co-authored-by: Erik <erik@montnemery.com>
2021-08-25 08:48:13 +02:00
Aaron BachandGitHub 24d017f974 Add ability to configure OpenUV "protection window" UV indices (#54562) 2021-08-24 15:37:50 -05:00
Alexei ChetroiandGitHub 289734c748 Update ZHA config entry radio detection (#55128) 2021-08-24 15:25:31 -05:00
8570502681 Convert Nanoleaf yaml and discovery to config flow (#52199)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-24 14:09:36 -05:00
Alexei ChetroiandGitHub 2927dcd809 Use a debouncer when updating ZHA group state (#53263) 2021-08-24 10:09:36 -07:00
Erik MontnemeryandGitHub 38f0020619 Improve Tasmota MQTT discovery flow (#55147) 2021-08-24 18:08:17 +02:00
Erik MontnemeryandGitHub 2c997586eb Deduplicate code in MQTT alarm_control_panel tests (#55149) 2021-08-24 18:06:39 +02:00
Erik MontnemeryandGitHub fa9f91325c Allow small dip in total_increasing sensor without detecting a reset (#55153) 2021-08-24 17:23:55 +02:00
Erik MontnemeryandGitHub 8877f37da0 Fix statistics for sensors setting last_reset (#55136)
* Re-add state_class total to sensor

* Make energy cost sensor enforce state_class total_increasing

* Drop state_class total

* Only report energy sensor issues once
2021-08-24 17:02:34 +02:00
jan iversenandGitHub de7352dbde Convert template/vacuum to pytest with fixtures (#54841) 2021-08-24 14:11:40 +02:00
Erik MontnemeryandGitHub 828d862339 Fix Tasmota MQTT discovery flow (#55140) 2021-08-24 13:23:26 +02:00
547ede1e91 Implementation of new Vacation mode for MQTT-based alarm panels (#53561)
* Impelentation of new Vacation Mode for MQTT-based alarm panels

* Fixed typo

* another typo fix

* Split integrations: remove manual_mqtt

* added newline

* Impelentation of new Vacation Mode for MQTT-based alarm panels

* Fixed typo

* another typo fix

* Split integrations: remove manual_mqtt

* added newline

* missing abbreviation

* Fix tests

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-08-24 13:22:49 +02:00
jjlawrenandGitHub d5fe7e0e5a Fallback to try all known Plex servers if none marked present (#53643) 2021-08-24 12:05:24 +02:00
Matthias AlphartandGitHub 19d81af4c1 Test KNX fan (#53621) 2021-08-24 12:00:37 +02:00
Jan BouwhuisandGitHub 5bb9aa8f3d Remove MQTT Fan legacy speeds (#54768)
* Remove MQTT Fan legacy speeds

* deprecated attibutes are not disruptive
2021-08-24 11:21:35 +02:00
J. Nick KostonandGitHub dc851b9dd5 Ensure camera scaling always produces an image of at least the requested width and height (#55033) 2021-08-24 10:44:12 +02:00
epenetandGitHub ccaf0d5c75 Use EntityDescription - onewire (#55003) 2021-08-24 10:37:59 +02:00
Paulus SchoutsenandGitHub 9fc96818df Guard for unparsable date time (#55108) 2021-08-23 23:56:47 -07:00
c8f584f4ef Validate requirements format in hassfest (#55094)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-08-24 08:51:07 +02:00
Paulus SchoutsenandGitHub cac486440f Mark eagle entities as unavailable if connection with meter losts (#55102) 2021-08-23 22:35:26 -07:00
J. Nick KostonandGitHub e92e206544 Fix race that allowed multiple config flows with the same unique id (#55131)
- If a config flow set a unique id and then did an await to
  return control to the event loop, another discovery with
  the same unique id could start and it would not see
  the first one because it was still uninitialized. We now
  check uninitialized flows when setting the unique id
2021-08-23 23:01:21 -05:00
J. Nick KostonandGitHub ce0a42a407 Fix updating device path from discovery in zha (#55124) 2021-08-23 22:36:24 -05:00
4d7de0fd4c Add support for Google Assistant's LocatorTrait for vacuum cleaners (#55015)
* Support for LocatorTrait for vacuum cleaners

* Handle Locator request with `silence: True`

* Update homeassistant/components/google_assistant/trait.py

Co-authored-by: Joakim Plate <elupus@ecce.se>

* Black

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-08-23 20:16:50 -07:00