Commit Graph

12021 Commits (bddfbe01f3951595dd7fabd7666446f8e8ae8a84)

Author SHA1 Message Date
Steven Looman bddfbe01f3
Better handle devices changing UDN and/or location in upnp component (#70008) 2022-04-20 11:01:43 -10:00
Franck Nijhof bfc82b030f
Replace Climate CURRENT_HVAC_* constants with HVACAction enum (#70319) 2022-04-20 13:41:05 -07:00
Erik Montnemery 150f173eed
Mark device conditions from hidden or auxiliary entities as secondary (#70333) 2022-04-20 21:41:59 +02:00
Erik Montnemery 7c0b0f7cc1
Migrate homekit_controller light to color_mode (#69261) 2022-04-20 09:26:15 -10:00
Erik Montnemery 64381acbaf
Mark device actions from hidden or auxiliary entities as secondary (#70278) 2022-04-20 10:48:46 -07:00
Glenn Waters 2a99084911
ElkM1 integration, add strict types to config_flow (#70323) 2022-04-20 10:46:36 -07:00
Johann Vanackere b0ed42a5a5
Fix #69952: Daikin AC Temperature jumps after being set (#70326) 2022-04-20 10:43:44 -07:00
Paulus Schoutsen b049ffca23
Add Insteon USB discovery (#70306)
* Add Insteon USB discovery

* Update tests/components/insteon/test_config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Black

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-20 10:07:35 -07:00
akloeckner d20a620590
Make `this` variable available in template entities (#65201)
* feat: make this variable available in template entities

This makes the variable `this` available in template entities.
It will simplify the use of self-referencing template entities.
Because, without this, we have to repeat the entity id every time.
If we can solve this without explicitly spelling the entity id,
code can be re-used much better.

As a side-effect, this will allow to use `variables`-like patterns,
where attributes can be used as variables to calculate subsequent attributes or state.

Example:
```yaml
template:
  sensor:
    - name: test
      state: "{{ this.attributes.test }}"
      # not: "{{ state_attr('sensor.test', 'test' }}"
      attributes:
        test: "{{ now() }}"
```

* expose entity_id instead of this

* add test

* Refactor to expose this variable

* Tweak repr dunder

Co-authored-by: Erik <erik@montnemery.com>
2022-04-20 15:30:17 +02:00
Franck Nijhof a22f36178f
Replace Climate HVAC_MODE_* constants with HVACMode enum (#70286)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-20 13:20:53 +02:00
Shay Levy 70616d2b78
Revert "Add humidity to tomorrowio hourly weather forecasts (#70186)" (#70311)
This reverts commit febcab11fb.
2022-04-20 11:56:13 +03:00
Diego Elio Pettenò 16de5edcbf
Don't attempt to set invalid fan percentage and preset_mode (try 3) (#70294)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-19 23:59:57 -07:00
Franck Nijhof c460100af1
Add backup.create service (#70118) 2022-04-20 08:56:05 +02:00
arantes555 a1f33a093c
Generic thermostat temp step (#70303)
* Add target_temp_step to generic_thermostat

* Add target_temp_step to generic_thermostat : fix default + add tests

* Add target_temp_step to generic_thermostat : fix test by using new 'units_imperial' fixture
2022-04-20 01:19:59 +03:00
J. Nick Koston 309424d3b9
Prevent tests changing units from affecting other tests (#70300)
* Prevent tests changing temperature_unit from affecting other tests

* tweak
2022-04-19 11:38:52 -10:00
J. Nick Koston 27c9e96865
Fix flapping goalzero tests (#70298) 2022-04-19 23:38:07 +02:00
J. Nick Koston c08afca912
Revert "Add target_temp_step to generic_thermostat (#58691)" (#70299)
This reverts commit ba4ca3e38e.
2022-04-19 22:46:42 +03:00
Paulus Schoutsen 78f5614cdc
Add extra tests for input text (#70283) 2022-04-19 19:31:09 +02:00
lymanepp febcab11fb
Add humidity to tomorrowio hourly weather forecasts (#70186)
* Add humidity to hourly weather forecasts

* Don't include humidity in daily forecasts

* Fix test
2022-04-19 19:14:07 +03:00
Mask3007 2228ea5ee0
Add update entity to fritz integration (#70096) 2022-04-19 17:12:21 +02:00
Álvaro Fernández Rojas 5729209d5d
Update aioairzone to v0.4.0 (#70280) 2022-04-19 17:03:13 +02:00
arantes555 ba4ca3e38e
Add target_temp_step to generic_thermostat (#58691)
* Add target_temp_step to generic_thermostat

* Add target_temp_step to generic_thermostat : fix default + add tests
2022-04-19 17:16:37 +03:00
Franck Nijhof d65e12ab6e
Add clear_skipped service to update entity (#70116) 2022-04-19 16:11:16 +02:00
Joakim Sørensen 9525077574
Add diagnostics platform to the Supervisor integration (#70265)
* Add diagnostics platform to the Supervisor integration

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-19 12:16:36 +02:00
Diogo Gomes 03874d1b65
Correct state restoring for Utility Meter sensors (#66851)
* fix merge

* backward compatability

* add status

* increase coverage

* increase further the coverage

* adds support for Decimal in SensorExtraStoredData

* more precise

* review

* don't restore broken last_reset

* increase coverage

* address review comments

* stale

* coverage increase

* Update homeassistant/components/utility_meter/sensor.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* catch corrupt files and respective tests

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-19 09:01:52 +02:00
Diogo Gomes 9dfd37c60b
Use CONF_NAME consistently in utility meter sensors with and without tariffs (#69152)
* apply name to tariff based sensors too

* change name without breaking entity_id

* address comments
2022-04-19 09:00:36 +02:00
hesselonline 84666ce05e
Rename wallbox non-config CONF_ variables (#69737) 2022-04-19 08:44:25 +02:00
J. Nick Koston d03760d0bb
Switch to using ULIDs for context_ids (#70246) 2022-04-18 22:45:41 -07:00
J. Nick Koston e70c8fa359
Refactor history_stats to minimize database access (part 1) (#70134) 2022-04-18 13:18:38 -10:00
IceBotYT 6c75eaa1bc
Add outage map alerts to PECO (#69825) 2022-04-18 23:22:14 +02:00
J. Nick Koston f63465bd71
Add recorder platform to input_select (#70223) 2022-04-18 22:18:19 +02:00
Thomas Lovén b50f369fe4
Add shorthand notation for boolean conditions (#70120) 2022-04-18 22:09:09 +02:00
Sebastian Lövdahl 8f4979ea17
Reduce state updates for OctoPrint (#70146) 2022-04-18 21:33:40 +02:00
ollo69 f4d4b52204
Improve AsusWrt test coverage (#70215)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-18 09:20:40 -10:00
Franck Nijhof ce1f074ca9
Add Template selector (#70229) 2022-04-18 11:28:01 -07:00
Franck Nijhof 1e4aacaeb1
Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum (#69861) 2022-04-18 19:37:32 +02:00
Franck Nijhof 81f3c82aef
Add recorder platform to input_text (#70227) 2022-04-18 08:22:14 -07:00
Franck Nijhof ec92c295d4
Add recorder platform to input_number (#70226) 2022-04-18 08:21:53 -07:00
Franck Nijhof 5d62f405f1
Add recorder platform to input_datetime (#70225) 2022-04-18 08:19:55 -07:00
Franck Nijhof fc4e9b0cc3
Add recorder platform to input_button (#70224) 2022-04-18 08:18:46 -07:00
Dave T d69a7e7be9
Hide credentials from generated titles in generic camera (#70204) 2022-04-18 07:57:52 -07:00
Greg Dowling 23264c8fd4
Improve roon integraton (#66000)
* Update to new library, revise discovery to work with new library, specify port to work with new library.

* Move user gui to fallback.

* Revise tests.

* Handle old config.

* Improve debugging, refresh faster on load.

* Remove duplicate.

* Bump library version.

* Fix docstring per review.

* Review suggestion

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Review suggestion

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add check for duplicate host.

* Add error message to strings.

* Tidy.

* Review changes.

* Remove default.

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-18 16:27:14 +02:00
J. Nick Koston c3108b3899
Exclude attributes for automation and script domains (#70168) 2022-04-18 12:10:18 +02:00
Franck Nijhof 38a1ef45ed
Add recorder platform to input_boolean (#70154)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-18 11:38:48 +02:00
J. Nick Koston 026e1635cc
Rename async_process_integration_platform to async_process_integration_platform_for_component (#70217) 2022-04-17 20:59:31 -10:00
J. Nick Koston a9a5645255
Defer profiler imports until needed to reduce memory pressure (#70202) 2022-04-17 20:16:25 -10:00
jjlawren c53aa50093
Rework Sonos discovery & availability (#70066) 2022-04-17 22:54:51 -07:00
J. Nick Koston 40eb1554d9
Only set attributes based on the configured type for min_max sensors (#70142) 2022-04-17 22:53:49 -07:00
J. Nick Koston b4ef150339
Add a guard when there are no integration platforms loaded (#70182) 2022-04-17 22:45:52 -07:00
Dave T 32f9aefb40
Auto set content type for stream-only in generic camera (#70200) 2022-04-17 22:28:25 -07:00