Commit Graph
17438 Commits
Author SHA1 Message Date
Erik MontnemeryandBram Kragten 067f946129 Send template render errors to template helper preview (#99716) 2023-09-06 16:09:01 +02:00
Robert SvenssonandBram Kragten e486ad735d Bump aiounifi to v61 (#99686)
* Bump aiounifi to v61

* Alter a test to cover the upstream change
2023-09-06 10:56:51 +02:00
puddlyandBram Kragten aa32b658b2 Fix ZHA startup creating entities with non-unique IDs (#99679)
* Make the ZHAGateway initialization restartable so entities are unique

* Add a unit test
2023-09-06 10:43:29 +02:00
Erik MontnemeryandBram Kragten 0cbcacbbf5 Include template listener info in template preview (#99669) 2023-09-06 10:43:28 +02:00
Erik MontnemeryandBram Kragten 9d87e8d02b Allow specifying a custom log function for template render (#99572)
* Allow specifying a custom log function for template render

* Bypass template cache when reporting errors + fix tests

* Send errors as events

* Fix logic for creating new TemplateEnvironment

* Add strict mode back

* Only send error events if report_errors is True

* Force test of websocket_api only

* Debug test

* Run pytest with higher verbosity

* Timeout after 1 minute, enable syslog output

* Adjust timeout

* Add debug logs

* Fix unsafe call to WebSocketHandler._send_message

* Remove debug code

* Improve test coverage

* Revert accidental change

* Include severity in error events

* Remove redundant information from error events
2023-09-06 10:43:27 +02:00
bd0fd9db77 Bump zwave-js-server-python to 0.51.1 (#99652)
* Bump zwave-js-server-python to 0.51.1

* Update test

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-09-05 20:24:50 +02:00
itpetersandBram Kragten 9e03f8a8d6 Fix long press event for matter generic switch (#99645) 2023-09-05 20:24:48 +02:00
Erik MontnemeryandBram Kragten 0520cadfa6 Revert "Deprecate timer start optional duration parameter" (#99613)
Revert "Deprecate timer start optional duration parameter (#93471)"

This reverts commit 2ce5b08fc3.
2023-09-04 20:49:42 +02:00
jan iversenandBram Kragten c677dae9c1 Modbus switch, allow restore "unknown" (#99533) 2023-09-04 20:45:32 +02:00
Erik MontnemeryandBram Kragten 423e8fbde3 Validate state in template helper preview (#99455)
* Validate state in template helper preview

* Deduplicate state validation
2023-09-04 20:45:28 +02:00
e5fd6961a8 Set state of entity with invalid state to unknown (#99452)
* Set state of entity with invalid state to unknown

* Add test

* Apply suggestions from code review

Co-authored-by: Robert Resch <robert@resch.dev>

* Update test_entity.py

---------

Co-authored-by: Robert Resch <robert@resch.dev>
2023-09-04 20:45:27 +02:00
Erik MontnemeryandBram Kragten 2a5f8ee4a7 Don't set assumed_state in fan groups (#99399) 2023-09-04 20:45:24 +02:00
Erik MontnemeryandBram Kragten 1c2c13c938 Don't set assumed_state in cover groups (#99391) 2023-09-04 20:45:23 +02:00
Russell CloranandBram Kragten e0594bffa1 Enumerate available states in Prometheus startup (#97993) 2023-09-04 20:45:22 +02:00
269bcac982 Extend template entities with a script section (#96175)
* Extend template entities with a script section

This allows making a trigger entity that triggers a few times a day,
and allows collecting data from a service resopnse which can be
fed into a template entity.

The current alternatives are to publish and subscribe to events or to
store data in input entities.

* Make variables set in actions accessible to templates

* Format code

---------

Co-authored-by: Erik <erik@montnemery.com>
2023-09-04 20:45:21 +02:00
Raman GuptaandBram Kragten 8dcc96c083 Fix device name in zwave_js repair flow (#99414) 2023-09-02 21:09:15 +02:00
270be19e1a Check new IP of Reolink camera from DHCP (#99381)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-02 21:09:14 +02:00
Russell CloranandBram Kragten f573c1e27c Handle timestamp sensors in Prometheus integration (#98001) 2023-09-02 21:09:12 +02:00
J. Nick KostonandBram Kragten ebf42ad342 Significantly reduce overhead to filter event triggers (#99376)
* fast

* cleanups

* cleanups

* cleanups

* comment

* comment

* add more cover

* comment

* pull more examples from forums to validate cover
2023-09-01 17:58:11 +02:00
2ec9abfd24 Create a ZHA repair when directly accessing a radio with multi-PAN firmware (#98275)
* Add the SiLabs flasher as a dependency

* Create a repair if the wrong firmware is detected on an EZSP device

* Update homeassistant/components/zha/strings.json

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

* Provide the ZHA config entry as a reusable fixture

* Create a separate repair when using non-Nabu Casa hardware

* Add unit tests

* Drop extraneous `config_entry.add_to_hass` added in 021def44

* Fully unit test all edge cases

* Move `socket://`-ignoring logic into repair function

* Open a repair from ZHA flows when the wrong firmware is running

* Fix existing unit tests

* Link to the flashing section in the documentation

* Reduce repair severity to `ERROR`

* Make issue persistent

* Add unit tests for new radio probing states

* Add unit tests for new config flow steps

* Handle probing failure raising an exception

* Implement review suggestions

* Address review comments

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
2023-09-01 17:58:09 +02:00
puddlyandBram Kragten 0bae0824b4 Initialize ZHA device database before connecting to the radio (#98082)
* Create ZHA entities before attempting to connect to the coordinator

* Delete the ZHA gateway object when unloading the config entry

* Only load ZHA groups if the coordinator device info is known offline

* Do not create a coordinator ZHA device until it is ready

* [WIP] begin fixing unit tests

* [WIP] Fix existing unit tests (one failure left)

* Fix remaining unit test
2023-09-01 17:58:08 +02:00
Joakim SørensenandBram Kragten a603a99bd6 Add remote alias to connection info response (#99410) 2023-08-31 17:17:51 +02:00
Erik MontnemeryandBram Kragten 97b0815122 Add documentation URL for homeassistant_sky_connect (#99377) 2023-08-31 17:17:47 +02:00
Erik MontnemeryandBram Kragten eb423c39b6 Improve template sensor config flow validation (#99373) 2023-08-31 17:17:45 +02:00
Erik MontnemeryandBram Kragten 52f8dbf25b Add documentation URL for homeassistant_yellow (#99336)
* Add documentation URL for homeassistant_yellow

* Fix test

* Tweak
2023-08-31 17:17:42 +02:00
tronikosandBram Kragten 794071449a Opower MFA fixes (#99317)
opower mfa fixes
2023-08-31 17:17:41 +02:00
cb33d82c24 Patch service validation in Aussie Broadband (#99077)
* Bump pyAussieBB

* rolling back to previous version

* patching the pydantic 2.x issue in aussie_broadband integration

* adding test for validate_service_type

* adding test for validate_service_type

* fixing tests, again

* adding additional test

* doing fixes for live tests

* Implement Feedback

* Add test to detect pydantic2

* Update test_init.py

* Update docstring

---------

Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
2023-08-31 17:17:40 +02:00
867e9b73bb Add zwave_js device config file change fix/repair (#99314)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-08-30 17:29:22 +02:00
Erik MontnemeryandGitHub 501d5db375 Add config flow for template binary sensor (#99339) 2023-08-30 17:28:56 +02:00
a5dcc25aab Add snapshot assertion to Airzone (#98760)
Co-authored-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-08-30 17:11:55 +02:00
Erik MontnemeryandGitHub f9b2e10f72 Add new board type (#99334) 2023-08-30 16:37:13 +02:00
Erik MontnemeryandGitHub 63c538b024 Add config flow for template sensor (#98970)
* Add config flow for template sensor

* Tweak error reporting

* Improve validation

* Fix test

* Rename translation strings

* Improve validation

* Fix sensor async_setup_entry

* Avoid duplicating sensor device class translations

* Avoid duplicating sensor device class translations

* Add config flow tests

* Include all units from DEVICE_CLASS_UNITS in unit_of_measurement select

* Address review comments
2023-08-30 16:22:52 +02:00
6e5f4566d5 Add zwave_js controller status sensor (#99252)
* Add zwave_js controller status sensor

* Also update network status command

* fix tests

* Remove WS command since we have a sensor entity

* Update sensor.py

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

* move driver assertion out of closures

* store state in tests

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-08-30 06:50:23 -04:00
Jan-Philipp BeneckeandGitHub 027ce55fa6 Use snapshot assertion for google assistant diagnostics test (#99167) 2023-08-30 12:25:06 +02:00
Jan-Philipp BeneckeandGitHub fb42042402 Use snapshot assertion for nextdns diagnostics test (#99157) 2023-08-30 12:22:10 +02:00
G JohanssonandGitHub 2ce5b08fc3 Deprecate timer start optional duration parameter (#93471)
* Deprecate timer start option duration parameter

* Add test

* Fix strings

* breaks_in_ha_version

* strings

* Mod string
2023-08-30 11:48:13 +02:00
021b14fc17 Refactor & enhance BMW tests (#97895)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2023-08-30 11:45:09 +02:00
jan iversenandGitHub 9ef3ec3dd3 Add modbus test for configuration errors (#98697) 2023-08-30 11:34:51 +02:00
Raman GuptaandGitHub 40748a6c34 Add zwave_js controller identify event (#99254) 2023-08-30 11:32:41 +02:00
Joost LekkerkerkerandGitHub 56b99d2bc6 Add entity translations to QNAP QSW (#98915) 2023-08-30 11:20:15 +02:00
MichaelandGitHub e7462e916a Conditional category for temperature sensor entities in AVM Fritz!Smarthome (#98981) 2023-08-30 10:29:35 +02:00
Michał HurynandGitHub e911b73b61 Add extra sensors to Blebox (#90516) 2023-08-30 10:20:45 +02:00
6e8b3837b0 Add support for MFA auth in opower (#97878)
* Add support for MFA auth in opower

* Make MFA an extra step

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-08-29 23:37:37 -04:00
Willem-Jan van RootselaarandGitHub 1e37e1e355 Bump python-bsblan to 0.5.16 (#99238) 2023-08-29 23:23:20 -04:00
Michael HansenandGitHub 054a63c3a2 Add option to save Assist pipeline audio (#98928)
* Add pipeline option to save wake/stt audio to media

* Add debug_recording_dir to assist_pipeline YAML config

* Clean up and additional tests

* Remove I/O in event loop

* Organize saved audio by pipeline name and device id

* Record wake/stt debug audio in separate thread

* Fix after rebase

* Use timestamp instead of pipeline id for directory name

* Add WAV write error test

* Join thread in executor
2023-08-29 23:07:27 -04:00
b403cb41c0 Allow one retry before raising ConfigEntryAuthFailed for bmw_connected_drive (#99168)
* Allow one retry before raising ConfigEntryAuthFailed

* Move time with freezer

* Update homeassistant/components/bmw_connected_drive/coordinator.py

---------

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-29 21:41:50 +02:00
Álvaro Fernández RojasandGitHub 4508e341c9 Add wind gust to AEMET hourly forecasts (#99289)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-08-29 21:14:37 +02:00
Mike DegatanoandGitHub e0eb63c588 Validate slug in addon services (#99232)
* Validate slug in addon services

* Move validator into hassio component

* Fixes from mypy

* Fix test for changes

* Adjust fixtures to current supervisor

* Fix call counts after fixture adjustment

* Increase coverage
2023-08-29 13:57:41 -04:00
Phil BrucknerandGitHub 10c53dd284 Fix Life360 reauthorization config flow (#99227) 2023-08-29 16:38:11 +02:00
Álvaro Fernández RojasandGitHub 2e0a22fdaf Use freezegun in AEMET tests (#99253) 2023-08-29 09:33:12 -05:00