Commit Graph

19759 Commits (2ef71289b9e6b8da3c63ab1ebcc7850d538eba19)

Author SHA1 Message Date
J. Nick Koston 0bbe46d236
Fix formatting of mac addresses from dhcp discovery mocking in airzone (#110559)
dhcp returns addresses in lowercase without :
2024-02-14 20:59:16 +01:00
J. Nick Koston 16d2482fe6
Fix formatting of mac addresses from dhcp discovery mocking in elkm1 (#110564)
dhcp returns addresses in lowercase without :
2024-02-14 20:58:40 +01:00
J. Nick Koston 5ce39f2177
Fix formatting of mac addresses from dhcp discovery mocking in emonitor (#110565)
dhcp returns addresses in lowercase without :
2024-02-14 20:58:07 +01:00
J. Nick Koston 730e8ab5f3
Fix formatting of mac addresses from dhcp discovery mocking in esphome (#110567)
dhcp returns addresses in lowercase without :
2024-02-14 20:57:37 +01:00
J. Nick Koston 08f97d66ff
Fix formatting of mac addresses from dhcp discovery mocking in flux_led (#110568)
dhcp returns addresses in lowercase without :
2024-02-14 20:56:00 +01:00
J. Nick Koston a87960a323
Fix formatting of mac addresses from dhcp discovery mocking in onvif (#110589)
dhcp returns addresses in lowercase without :
2024-02-14 20:55:14 +01:00
J. Nick Koston 52e8f7f865
Fix formatting of mac addresses from dhcp discovery mocking in fully_kiosk (#110573)
dhcp returns addresses in lowercase without :
2024-02-14 20:54:44 +01:00
J. Nick Koston efbfec0ece
Fix formatting of mac addresses from dhcp discovery mocking in guardian (#110575)
dhcp returns addresses in lowercase without :
2024-02-14 20:54:16 +01:00
J. Nick Koston cd0ce7d9f6
Fix formatting of mac addresses from dhcp discovery mocking in intellifire (#110579)
dhcp returns addresses in lowercase without :
2024-02-14 20:53:50 +01:00
J. Nick Koston 98263d7d76
Fix formatting of mac addresses from dhcp discovery mocking in lifx (#110581)
dhcp returns addresses in lowercase without :
2024-02-14 20:53:26 +01:00
J. Nick Koston 815232069a
Fix formatting of mac addresses from dhcp discovery mocking in motion_blinds (#110583)
dhcp returns addresses in lowercase without :
2024-02-14 20:52:32 +01:00
J. Nick Koston b0e87c0941
Fix formatting of mac addresses from dhcp discovery mocking in nuki (#110585)
dhcp returns addresses in lowercase without :
2024-02-14 20:51:44 +01:00
J. Nick Koston 4eca0371d5
Fix formatting of mac addresses from dhcp discovery mocking in obihai (#110586)
dhcp returns addresses in lowercase without :
2024-02-14 20:51:06 +01:00
J. Nick Koston 88fce6a76d
Fix formatting of mac addresses from dhcp discovery mocking in insteon (#110578)
dhcp returns addresses in lowercase without :
2024-02-14 20:49:32 +01:00
J. Nick Koston bba19a5bab
Fix formatting of mac addresses from dhcp discovery mocking in hunterdouglas_powerview (#110577)
dhcp returns addresses in lowercase without :
2024-02-14 20:48:53 +01:00
Joost Lekkerkerker f72efa9618
Add entity translations to OralB (#97402)
* Make bluetooth use the translation from the entity description

* Add entity translations to OralB

* Remove links to other platforms

* Remove links to other platforms

* Remove links to other platforms

* Add test

* Use is

* Fix tests

* Update homeassistant/components/oralb/strings.json
2024-02-14 17:21:47 +01:00
J. Nick Koston 3a053afac6
Create backups files without having to copy inner tarballs (#110267) 2024-02-14 10:08:22 -06:00
Joost Lekkerkerker 0e833c5fe3
Migrate Twinkly to has entity naming (#97206)
* Migrate Twinkly to has entity naming

* Update the device name after sync

* Fix tests

---------

Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-02-14 16:43:29 +01:00
Simone Chemelli 538ef7764e
Move Shelly thermostat check to status endpoint (#110543)
* Move Shelly thermostat check to status endpoint

* fix key path
2024-02-14 16:36:42 +01:00
DeerMaximum d16d9d72c3
Add config flow to Velux (#89155)
* Add config_flow

* Add old config import

* Change from platform setup to entry setup

* Improve yaml config import

* Allow multiple hosts

* Apply recommendations

* Add DeerMaximum as codeowner

* Apply recommendations

* Fix config schema

* Fix hass data

* Remove DeerMaximum from CODEOWNERS

* Try to fix tests in ci

* Try to fix tests in ci 2

* Try to fix tests in ci 3

* Revert: Try to fix tests in ci 3

* Add end-to-end flow to connection error test

* Fix rebase

* Add required changes

* Change deprecation date

* Import only valid config entries

* Improve issue creation

* Fix error type

* Add missing test

* Optimize issue creation

* Optimize tests

* Add check for duplicate entries

* Add already_configured message

* Create issue for duplicate entries
2024-02-13 21:31:56 +01:00
DustyArmstrong 3bf6d525fb
Bump datapoint to 0.9.9 + re-enable Met Office Integration (#110206) 2024-02-13 17:24:08 +01:00
Jonas Fors Lellky f7c43710dc
Refactor flexit_bacnet to use icon translations (#110479) 2024-02-13 16:09:18 +01:00
Jonas Fors Lellky 6091ae55dc
Add setpoints for fans to flexit_bacnet (#110262)
* Adds setpoints for fans to flexit_bacnet

* Add snapshot test for flexit_bacnet number

* Add test for flexit_bacnet number implementation

* Refactor set_native_value_fn

* Refactor names of number entities

Also refactor keys, translation keys
Order alphabetically
Update test snapshot

* Add icons to flexit_bacnet number entities

* Refactor to use icon translations, add unit of measurement

* Remove redundant assert
2024-02-13 14:55:02 +01:00
Michael 602380e111
Detect reached API rate limit in Tankerkoenig (#110432) 2024-02-13 14:34:01 +01:00
Cyrill Raccaud 6812596cd7
Switch to new Bring! lib (#110355)
* switch to new bring lib

* rename lib again
2024-02-13 13:25:32 +01:00
Martin Hjelmare f140c1a46d
Deprecate cloud tts platform config (#110461)
* Deprecate cloud tts platform config

* Add test
2024-02-13 13:00:42 +01:00
Jan Bouwhuis 09f1ec78a5
Handle template errors on MQTT payload handling (#110180)
* Handle template errors on MQTT payload handling (alt)

* Handle mqtt event en image template errors correctly
2024-02-13 10:59:55 +01:00
Josef Zweck ee25f6b960
Add additonal number entities to La Marzocco (#108258) 2024-02-13 09:47:39 +01:00
J. Nick Koston 77f416fa04
Ensure cast tests add config entry before updating it (#110441)
* Ensure cast tests add config entry before updating it

* time to walk away for a bit

* missed two
2024-02-13 05:01:37 +01:00
J. Nick Koston 0e1cdc1f79
Ensure github tests add config entry before updating it (#110430) 2024-02-13 05:00:44 +01:00
J. Nick Koston 704ad67917
Ensure hue tests add config entry before updating it (#110428) 2024-02-13 04:59:26 +01:00
Aaron Bach e3c838d512
Update Notion auth to store refresh tokens instead of account passwords (#109670) 2024-02-12 20:35:06 -07:00
Raman Gupta c1d61b9748
Improve climate turn_on/turn_off services for zwave_js (#109187)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-02-12 19:06:23 -05:00
Maciej Bieniek b60f931e6d
Improve tests for Shelly WallDisplay (#110435)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 16:51:34 -06:00
J. Nick Koston da50e459bf
Ensure knx tests add config entry before updating it (#110425) 2024-02-12 23:13:10 +01:00
J. Nick Koston 92842c28d2
Ensure cast tests add config entry before updating it (#110416) 2024-02-12 23:06:13 +01:00
J. Nick Koston 067645520a
Ensure dlna_dmr tests add config entry before updating it (#110418) 2024-02-12 22:59:44 +01:00
J. Nick Koston e605b96d84
Ensure config entry oauth2 tests add config entry before updating it (#110421) 2024-02-12 22:59:17 +01:00
J. Nick Koston d9c581e2c8
Ensure homematicip_cloud tests add config entry before updating it (#110429) 2024-02-12 23:57:48 +02:00
J. Nick Koston 4e76e6b2b0
Ensure gdacs tests add config entry before updating it (#110431) 2024-02-12 23:56:48 +02:00
J. Nick Koston b3d9e15fb4
Ensure blink tests add config entry before updating it (#110415) 2024-02-12 22:56:22 +01:00
J. Nick Koston a3a1f8216c
Migrate luftdaten to use async_update_entry to alter config entries (#110424) 2024-02-12 22:55:34 +01:00
J. Nick Koston ddab106391
Migrate twentemilieu to use async_update_entry to alter config entries (#110419) 2024-02-12 22:55:05 +01:00
J. Nick Koston bb9ffa758d
Ensure sonarr tests add config entry before updating it (#110422) 2024-02-12 15:30:01 -06:00
J. Nick Koston 8282018260
Migrate onewire to use async_update_entry to alter config entries (#110413) 2024-02-12 15:29:50 -06:00
J. Nick Koston 61610a5ef9
Ensure deconz tests add config entry before updating it (#110417) 2024-02-12 15:29:33 -06:00
J. Nick Koston bc0a78d069
Migrate tplink to use async_update_entry to alter config entries (#110406) 2024-02-12 21:39:37 +01:00
J. Nick Koston 45f23f4458
Migrate trend to use async_update_entry to alter config entries (#110408) 2024-02-12 14:38:56 -06:00
J. Nick Koston 5c60ff19e9
Migrate plex to use async_update_entry to alter config entries (#110405) 2024-02-12 21:38:38 +01:00
J. Nick Koston 15e8d66fea
Migrate unifiprotect to use async_update_entry to alter config entries (#110409) 2024-02-12 21:38:25 +01:00
J. Nick Koston 04dccc7ec6
Migrate mqtt to use async_update_entry to alter config entries (#110407) 2024-02-12 21:38:13 +01:00
J. Nick Koston 4a98f3f223
Migrate ping to use async_update_entry to alter config entries (#110404) 2024-02-12 21:25:17 +01:00
J. Nick Koston 7dcf2e94b4
Migrate zha to use async_update_entry to alter config entries (#110402) 2024-02-12 21:24:56 +01:00
J. Nick Koston c3d9192384
Migrate smartthings to use async_update_entry to alter config entries (#110403) 2024-02-12 21:24:45 +01:00
J. Nick Koston cc13d7eec7
Migrate hue to use async_update_entry to alter config entries (#110310) 2024-02-12 20:20:10 +01:00
J. Nick Koston 5c7d3035ca
Migrate ipp to use async_update_entry to alter config entries (#110311) 2024-02-12 20:19:48 +01:00
Maciej Bieniek 2bd64dba6b
Add `removal_condition` for Shelly analog input sensors (#110331)
* Add remove condition for analog input sensors

* xpercent key is not present in the payload if it has not been configured

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 20:13:11 +01:00
J. Nick Koston 32e3f6c5a7
Migrate roku to use async_update_entry to alter config entries (#110363) 2024-02-12 20:10:06 +01:00
Erik Montnemery e27e799dd5
Add power strip with 2 outlets to kitchen_sink (#110346) 2024-02-12 20:00:13 +01:00
J. Nick Koston 29146326fa
Fix zone radius calculation when radius is not 0 (#110354) 2024-02-12 19:47:34 +01:00
J. Nick Koston 3b409b07e3
Migrate zwave_js to use async_update_entry to alter config entries (#110376) 2024-02-12 19:42:02 +01:00
Erik Montnemery a51d3b4286
Remove store from google_assistant AbstractConfig (#109877)
* Remove store from google_assistant AbstractConfig

* Bump minor version of google_assistant store

* Fix test

* Improve comments

* Fix typo

* Refactor

* Update homeassistant/components/google_assistant/http.py

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

* Fix bug, add tests

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-02-12 19:24:21 +01:00
Erik Montnemery 1764c031df
Warn when lights violate color mode rules (#110336)
* Warn when lights violate color mode rules

* Update test

* Remove redundant warning, add tests

* Improve test coverage
2024-02-12 17:43:50 +01:00
Maciej Bieniek 8de038527f
Improve type annotation in Shelly tests (#110361)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 10:23:55 -06:00
Adam Goode 5cdc3cec32
Properly report cover positions to prometheus (#110157) 2024-02-12 15:33:03 +01:00
Jan-Philipp Benecke fb878836a8
Handle no data error in Electricity Maps config flow (#110259)
Co-authored-by: Viktor Andersson <30777521+VIKTORVAV99@users.noreply.github.com>
2024-02-12 15:03:29 +01:00
Kevin Worrel 121f37b6b6
Correct screenlogic test's mock adapter name (#110317)
Correct mock adapter name
2024-02-12 11:20:33 +01:00
J. Nick Koston b5d9f275b9
Migrate google_assistant_sdk to use async_update_entry to alter config entries (#110307) 2024-02-12 11:16:44 +01:00
Åke Strandberg 8376c07969
Add myuplink diagnostics download (#109925)
* Dump all relevant data from API

* Cleanup and adjust

* Redact serialNumber

* WIP

* Add fixtures

* WIP

* Tests for diagnostics completed

* Address review comments

* Change to fake token

* Add missed redact

* Improve mocks

* Resolve review comments
2024-02-12 10:56:06 +01:00
Richard Kroegel 1b8bda6067
Remove old BMW vehicles/devices automatically (#110255)
* Remove not assigned vehicles from DeviceRegistry on startup

* Replace async_remove_device with async_update_device

* Add test

* Use generator

---------

Co-authored-by: Richard <rikroe@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-02-12 10:52:08 +01:00
Maciej Bieniek 4f277b9509
Add pulse counter sensors for Shelly (#110248)
* Add pulse counter sensors to Shelly

* Add a unit for the pulse counter

* Fix removal condition

* xtotal key is not present in the payload if it has not been configured

* Update test

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 09:42:38 +01:00
J. Nick Koston 5528ae9707
Migrate knx to use async_update_entry to alter config entries (#110312) 2024-02-12 09:39:05 +01:00
Luke Lashley 33cdcce191
Better teardown and setup of Roborock connections (#106092)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-02-12 09:37:37 +01:00
J. Nick Koston e3813d4134
Migrate blink to use async_update_entry to alter config entries (#110303) 2024-02-12 08:30:38 +01:00
J. Nick Koston 55022767ac
Migrate homematicip_cloud to use async_update_entry to alter config entries (#110308) 2024-02-12 08:29:37 +01:00
J. Nick Koston 322b8b5be0
Migrate lametric to use async_update_entry to alter config entries (#110313) 2024-02-12 08:27:05 +01:00
Marc Mueller 2ef2172b01
Convert test helpers to get hass instance to contextmanagers (#109990)
* Convert get_test_home_assistant helper to contextmanager

* Convert async_test_home_assistant helper to contextmanager

* Move timezone reset to async_test_home_assistant helper
2024-02-11 21:23:51 +01:00
Jan-Philipp Benecke 3342e6ddbd
Avoid calling hass internals when adding mock config entry in Fully Kiosk (#110291) 2024-02-11 21:17:54 +01:00
Jan-Philipp Benecke 932d930084
Avoid calling hass internals when adding mock config entry in Blink (#110290) 2024-02-11 21:17:22 +01:00
G Johansson 7ce1ba9304
Fix cpu percentage in System Monitor (#110268)
* Fix cpu percentage in System Monitor

* Tests
2024-02-11 21:11:31 +01:00
Maciej Bieniek 326da81656
Add icon translations to Shelly (#110183)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-11 14:07:10 -06:00
Floris272 7dc9ad63bd
Implement late feedback for Bluecurrent (#106918)
* Apply changes

* Fix MockClient

* Apply feedback

* Remove connector tests

* Change MockClient to inhert MagicMock

* Add reconnect tests and refactor mock client

* Refactor mock exception throwing

* Add future_fixture

* Move mocked client methods into create_client_mock

* Remove fixture and separate event from mock_client

* Add FutureContainer to store the loop_future
2024-02-11 20:57:38 +01:00
Martin Hjelmare 6b4920ffa6
Refactor tradfri tests (#110094)
* Refactor tradfri tests

* Refactor command store

* Fix fixture type annotations

* Fix test type errors
2024-02-11 12:01:12 +01:00
chammp a5cc0ae890
Improve package schema validation (#108125)
* Add failing tests for package config validation error wrapping

* Wrap package schema validation errors in HomeAssistantError

* Fix yamllint errors

* Rework package merge validation

Ignore invalid package definitions instead of failing startup.
Output error messages with locations if possible when a package
definition has errors.

* Ruff format

* Fix linter errors

* Move package_definition_schema to module scope

* Move inner function to module level

* Merge exception handlers

Merge exception handlers for config schema validation and package merge
to avoid untested code branches

* Fix long lines and doc strings

* More minor changes to exception handler

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-02-10 20:16:20 +01:00
Maciej Bieniek 845071f8f0
Add icon translations to Brother (#110128)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-10 12:17:53 +01:00
Piotr Machowski a2f4e99994
Add state_translated function to jinja templates (#96906)
* Add state_translated jinja function

* Add tests for load_state_translations_to_cache and get_cached_translations

* Cleanup state_translated template

* Add tests for state_translated jinja function

* Apply black formatting

* Improve code quality

* Apply suggestions from code review

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

* Apply suggestions from code review

* Prevent invalid components from loading translations

* Refactor loading translations to cache

* Adjust code issues

* Update homeassistant/helpers/translation.py

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

* Refactor listeners that trigger translation loading

* Apply suggestions from code review

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

* Apply suggestions from code review

* Adjust invalid function calls, fix code styling

* Adjust code quality

* Extract async_translate_state function

* Apply suggestions from code review

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

* Apply suggestions from code review

* Fix tests

* Fix tests

---------

Co-authored-by: Piotr Machowski <PiotrMachowski@users.noreply.github.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-02-10 10:47:56 +01:00
J. Nick Koston d1f098c11f
Use async_update_entry to update dlna_dmr options in tests (#110117)
needed for #110023
2024-02-10 07:57:58 +01:00
J. Nick Koston f6d4617c7a
Avoid directly changing config entry state in tests (part 2) (#110115)
followup to #110048 for more places
2024-02-10 07:20:15 +01:00
J. Nick Koston b0d3cc150f
Use async_update_entry to update esphome options in tests (#110118) 2024-02-09 20:01:33 -06:00
Maciej Bieniek 57bec29266
Add icon translations to NAM (#110135)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-09 23:28:24 +01:00
Maciej Bieniek 0954e4cd73
Add icon translations to GIOS (#110131)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-09 23:28:11 +01:00
J. Nick Koston facf927626
Use async_update_entry in github tests (#110119)
needed for #110023
2024-02-09 18:11:05 +01:00
J. Nick Koston 206aaac700
Reduce complexity in the homekit config flow filters (#109850)
* Add typing to entity filters

* Add typing to entity filters

* Add typing to entity filters

* Add typing to entity filters

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks
2024-02-09 09:33:21 -05:00
J. Nick Koston 8e4714c563
Avoid delaying startup in dlna_dmr (#109836)
* Avoid delaying startup in dlna_dmr

fixes #109834

* make sure device info is linked up at startup

* fixes

* update tests

* startup only

* override device info if we have it

* fixes

* make sure its set right away when adding the device

* revert test changes

* coverage

* coverage

* coverage

* coverage

* adjust

* fixes

* more fixes

* coverage

* coverage

* coverage

* tweaks

* tweaks

* Revert "revert test changes"

This reverts commit 014d29297d.

* coverage

* coverage
2024-02-09 09:05:27 -05:00
Erik Montnemery 3ca202a338
Fix scene tests (#110097) 2024-02-09 14:10:59 +01:00
Jan Bouwhuis 8aa4157290
Add entry diagnostics to imap integration (#109460) 2024-02-09 11:30:27 +01:00
Erik Montnemery 793b6aa97d
Allow passing version to ConfigEntry.async_update_entry (#110077)
Allow passing minor_version and version to ConfigEntry.async_update_entry
2024-02-09 10:10:25 +01:00
J. Nick Koston b5afdf34f4
Improve ability to debug one time listeners blocking the event loop (#110064) 2024-02-09 08:44:14 +01:00
Christophe Gagnier 720fb7da59
Update pytechnove to 1.2.2 (#110074) 2024-02-09 08:41:48 +01:00
Jc2k 4f404881dd
Remove homekit_controller entity registry entries when backing char or service is gone (#109952) 2024-02-09 07:05:08 +00:00
J. Nick Koston 122ac059bc
Convert dhcp watcher to asyncio (#109938) 2024-02-08 22:23:42 -06:00
Allen Porter 261f9c5d62
Cleanup test config entry setup to use best practices (#110070)
* Cleanup test config entry setup to use best practices

* Add missed files
2024-02-08 19:52:40 -08:00
Michael Hansen 2681dae60c
Matching duplicate named entities is now an error in Assist (#110050)
* Matching duplicate named entities is now an error

* Update snapshot

* Only use area id
2024-02-08 19:38:03 -06:00
J. Nick Koston 02efe41564
Avoid directly changing config entry state in tests (#110048) 2024-02-08 16:31:17 -06:00
Mike Degatano a0e515df1a
Allow disabling home assistant watchdog (#109818) 2024-02-08 20:09:53 +01:00
Erik Montnemery 2f15053311
Don't blow up if config entries have unhashable unique IDs (#109966)
* Don't blow up if config entries have unhashable unique IDs

* Add test

* Add comment on when we remove the guard

* Don't stringify hashable non string unique_id
2024-02-08 15:39:01 +01:00
jan iversen 97c6fd0f8d
Allow modbus negative min/max value. (#109995) 2024-02-08 15:34:43 +01:00
jan iversen 9f50153c8b
Allow modbus min/max temperature to be negative. (#109977) 2024-02-08 13:48:33 +01:00
Marcel van der Veldt e7213a4192
Handle Matter nodes that become available after startup is done (#109956) 2024-02-08 13:14:10 +01:00
Erik Montnemery c7957f8e94
Prevent network access in emulated_hue tests (#109991) 2024-02-08 13:00:45 +01:00
jan iversen 55f10656a7
Allow modbus "scale" to be negative. (#109965) 2024-02-08 12:40:32 +01:00
Marcel van der Veldt d6e617eff8
Bump Python matter server to 5.5.0 (#109894) 2024-02-08 08:59:57 +01:00
Michael Hansen 1750f54da4
Assist fixes (#109889)
* Don't pass entity ids in hassil slot lists

* Use first completed response

* Add more tests
2024-02-07 15:13:42 -06:00
Maciej Bieniek b276a7863b
Add missing `unique_id` check for Shelly Analog Input sensor (#109888)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-07 11:20:53 -06:00
Marc Mueller de066c7fc0
Reset log level in script tests (#109881) 2024-02-07 17:22:10 +01:00
Maciej Bieniek b5b09446a1
Add analog input value sensor for Shelly (#109312)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-07 10:22:00 -06:00
Maciej Bieniek d0384480f5
Test unique IDs for Shelly entities (#109879)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-07 10:18:00 -06:00
Jc2k 1ea9b1a158
Add support for air purifiers to HomeKit Device (#109880) 2024-02-07 15:19:42 +00:00
Erik Montnemery aea81a180c
Fix Shelly white light test (#109855) 2024-02-07 15:39:49 +01:00
Thomas55555 6d4ab6c758
Add Husqvarna Automower integration (#109073)
* Add Husqvarna Automower

* Update homeassistant/components/husqvarna_automower/__init__.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/husqvarna_automower/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/husqvarna_automower/entity.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/husqvarna_automower/entity.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/husqvarna_automower/lawn_mower.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/husqvarna_automower/lawn_mower.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* address review

* add test_config_non_unique_profile

* add missing const

* WIP tests

* tests

* tests

* Update homeassistant/components/husqvarna_automower/api.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/husqvarna_automower/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/husqvarna_automower/config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/husqvarna_automower/conftest.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* .

* loop through test

* Update homeassistant/components/husqvarna_automower/entity.py

* Update homeassistant/components/husqvarna_automower/coordinator.py

* Update homeassistant/components/husqvarna_automower/coordinator.py

* Apply suggestions from code review

* ruff

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-02-07 09:27:04 +01:00
Luke Lashley 6f3be3e505
Move Roborock map retrieval to coordinator and made map always diagnostic (#104680)
Co-authored-by: Robert Resch <robert@resch.dev>
2024-02-07 09:13:51 +01:00
Josef Zweck 2fc56ff4e4
Add late PR changes to tedee (#109858)
requested changes
2024-02-07 08:53:19 +01:00
Erik Montnemery b420c65016
Fix hue fallback onoff colormode (#109856)
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
2024-02-07 08:14:55 +01:00
Joost Lekkerkerker 905e25b3a1
Make integration fields in Analytics Insights optional (#109789) 2024-02-07 06:26:33 +01:00
Joost Lekkerkerker 59e9010b65
Show domain in oauth2 error log (#109708)
* Show token url in oauth2 error log

* Fix tests

* Use domain
2024-02-06 23:03:35 +01:00
Marcel van der Veldt fd5efd1f79
Add transition support to Matter light platform (#109803)
* Add support for transitions to Matter light platform

* fix the feature check

* add tests
2024-02-06 22:59:55 +01:00
Franck Nijhof db16b739a6
Don't block Supervisor entry setup with refreshing updates (#109809) 2024-02-06 22:34:53 +01:00
J. Nick Koston 09c609459d
Fix entity services targeting entities outside the platform when using areas/devices (#109810) 2024-02-06 12:41:57 -06:00
Erik Montnemery 674e4ceb2c
Make additional methods of google_assistant.AbstractConfig abstract (#109811) 2024-02-06 19:14:12 +01:00
wittypluck 7d24ae88e6
Mark Unifi bandwidth sensors as unavailable when client disconnects (#109812)
* Set sensor as unavailable instead of resetting value to 0 on disconnect

* Update unit test on unavailable bandwidth sensor
2024-02-06 18:33:10 +01:00
Joost Lekkerkerker 6519b24319
Make bluetooth use naming from the entity description (#97401)
* Make bluetooth use the translation from the entity description

* Remove links to other platforms

* Remove links to other platforms

* Remove links to other platforms

* Add test

* Use is

* Fix test

* Update homeassistant/components/bluetooth/passive_update_processor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-06 17:12:15 +01:00
Marc Mueller 545b888034
Update ruff to 0.2.1 (#109796)
* Update ruff to 0.2.1

* Rename config sections

* Update remapped error codes

* Add ignores
2024-02-06 15:41:34 +01:00
puddly a533fa222e
Bump ZHA dependencies (#109770)
* Bump ZHA dependencies

* Bump universal-silabs-flasher to 0.0.18

* Flip `Server_to_Client` enum in ZHA unit test

* Bump zigpy to 0.62.2
2024-02-06 09:40:29 -05:00
Erik Montnemery 0cb913370f
Rename google_assistant.AbstractConfig.get_local_agent_user_id (#109798)
* Rename google_assistant.AbstractConfig get_local_agent_user_id to get_local_user_id

* Fix
2024-02-06 15:40:12 +01:00
tronikos d4c235622f
Break long strings in Google generative ai conversation (#109771)
* Update test_init.py

* Update __init__.py
2024-02-06 10:50:58 +01:00
Jan Bouwhuis 6ca002a6f4
Improve tests of mqtt device triggers (#108318)
Improve tests on mqtt device triggers
2024-02-06 09:38:15 +01:00
Jan Bouwhuis 00947b708f
Remove aux heat support from mqtt climate (#109513) 2024-02-06 09:37:39 +01:00
G Johansson 1706156faf
Add Process binary sensor in System Monitor (#108585)
* Process binary sensor in System Monitor

* Add repair flow

* add issue

* add platform

* fix repair

* Tests

* Fix tests

* add minor version

* migrate

* Mod repairs

* Fix tests

* config flow test

* Last fixes

* Review comments

* Remove entities during repair

* Remove snapshot
2024-02-06 02:09:05 +01:00
suaveolent 668d036f71
Improve lupusec code quality (#109727)
* renamed async_add_devices

* fixed typo

* patch class instead of __init__

* ensure non blocking get_alarm

* exception handling

* added test case for json decode error

* avoid blockign calls

---------

Co-authored-by: suaveolent <suaveolent@users.noreply.github.com>
2024-02-06 01:20:14 +01:00
TheJulianJES 965f31a9e0
Fix ZHA creating unnecessary "summ received" entity after upgrade (#109268)
* Do not create `current_summ_received` entity until initialized once

* Update zha_devices_list.py to not expect summation received entities

The attribute isn't initialized for these devices in the test (which our check now expects it to be), hence we need to remove them from this list.

* Update sensor tests to have initial state for current_summ_received entity

The attribute needs to be initialized for it to be created which we do by plugging the attribute read.
The test expects the initial state to be "unknown", but hence we plugged the attribute (to create the entity), the state is whatever we plug the attribute read as.

* Update sensor tests to expect not updating current_summ_received entity if it doesn't exist
2024-02-05 19:12:56 -05:00
Erik Montnemery b7284b92ac
Clean up Alexa when logging out from cloud (#109738)
* Clean up Alexa when logging out from cloud

* Add test
2024-02-05 23:58:34 +01:00
Jan Bouwhuis 94ccd59123
Fix generic camera error when template renders to an invalid URL (#109737) 2024-02-05 20:19:38 +01:00
Michael 45f44e9216
Use tracked entity friendly name for proximity sensors (#109744)
user tracked entity friendly name
2024-02-05 20:18:59 +01:00
Cyrill Raccaud 53d46acc50
Bump python-bring-api to 3.0.0 (#109720) 2024-02-05 18:51:01 +01:00
Marc Mueller 46f8fb3ac1
Use builtin TimeoutError [misc] (#109703) 2024-02-05 18:45:16 +01:00
Jan Bouwhuis 5dfffb0818
Allow weight to be used as total_increasing state_class for sensors (#108505)
* Allow weight to be used as total_increasing state_class for sensors

* Add SensorStateClass.TOTAL
2024-02-05 18:01:06 +01:00
Joost Lekkerkerker 3bcd367b65
Set Analytics Insights as diagnostic (#109702)
* Set Analytics Insights as diagnostic

* Set Analytics Insights as diagnostic
2024-02-05 16:03:14 +01:00
Erik Montnemery 30710815f0
Add test of remote enabling of remote UI (#109698) 2024-02-05 13:07:57 +01:00
Erik Montnemery f1d3c417f9
Remove homeassistant_yellow config entry if hassio is not present (#109686) 2024-02-05 12:29:25 +01:00
Erik Montnemery 048d9e75e6
Remove homeassistant_green config entry if hassio is not present (#109685) 2024-02-05 12:26:58 +01:00
Erik Montnemery 93e0810938
Remove hardkernel config entry if hassio is not present (#109680) 2024-02-05 12:25:26 +01:00
Erik Montnemery c096ac56db
Remove raspberry_pi config entry if hassio is not present (#109687) 2024-02-05 12:23:30 +01:00
Marc Mueller 8b0c9d3d18
Use builtin TimeoutError [t-z] (#109683) 2024-02-05 12:20:36 +01:00
Marc Mueller 438d3b01b9
Use builtin TimeoutError [o-s] (#109682) 2024-02-05 12:14:37 +01:00
Marc Mueller cd0ee98dba
Use builtin TimeoutError [core + helpers] (#109684) 2024-02-05 12:09:54 +01:00
Marc Mueller a9147cf3dd
Use builtin TimeoutError [k-n] (#109681) 2024-02-05 12:08:18 +01:00
Marc Mueller 7a89e58873
Use builtin TimeoutError [e-i] (#109679) 2024-02-05 12:00:37 +01:00
Marc Mueller c82933175d
Use builtin TimeoutError [a-d] (#109678) 2024-02-05 11:31:33 +01:00
Myles Eftos 41a256a3ff
Show site state in Amberelectric config flow (#104702) 2024-02-05 10:53:42 +01:00
ollo69 b56dd3f808
Don't create AsusWRT loadavg sensors when unavailable (#106790) 2024-02-05 09:03:43 +01:00
David F. Mulcahey c9fd97c6a3
Buffer TImeoutError in Flo (#109675) 2024-02-05 08:58:08 +01:00
Michael ffe9f0825a
Add zone related sensors in proximity (#109630)
* move legacy needed convertions into legacy entity

* add zone related sensors

* fix test coverage

* fix typing

* fix entity name translations

* rename placeholder to tracked_entity
2024-02-05 00:42:07 +01:00
Ernst Klamer a95a51da05
Add Xiaomi-ble remotes and dimmers (#109327) 2024-02-05 00:30:47 +01:00
J. Nick Koston 73589015c3
Improve scalability of DHCP matchers (#109406) 2024-02-04 16:50:08 -06:00
J. Nick Koston 9fef1938b4
Make get_entries_for_device_id skip disabled devices by default (#109645) 2024-02-04 23:11:56 +01:00
Aaron Bach edc6e3e2f9
Bump `aionotion` to 2024.02.0 (#109577) 2024-02-04 14:35:08 -07:00
Cody C 770119c8ad
Handle GeoJSON int to str conversion when the name is an int (#108937)
Co-authored-by: Chris Roberts <NasaGeek@users.noreply.github.com>
2024-02-04 21:26:05 +01:00
Jan Bouwhuis 7cc0b8a2fe
Fix imap message part decoding (#109523) 2024-02-04 21:25:14 +01:00
G Johansson bc45b31335
Fix repairs for remove dates in Workday (#109626) 2024-02-04 21:15:17 +01:00
Franck Nijhof b553bb71e6
Fix Tuya QR code expiry, use native QR selector (#109615)
* Fix Tuya QR code expiry, use native QR selector

* Adjust tests
2024-02-04 18:58:09 +01:00
Joakim Sørensen e96f574a79
Add diagnostics platform to Traccar Server (#109521) 2024-02-04 18:40:44 +01:00
J. Nick Koston 8d4f32645d
Add tests for shelly switch unique ids (#109617) 2024-02-04 11:23:33 -06:00
J. Nick Koston e35c7fde89
Avoid many string lowers in the state machine (#109607) 2024-02-04 17:35:35 +01:00
David F. Mulcahey 8a9478b714
Update Flo test to address review comment (#109604)
* Update Flo test to address review comment

* update comment

* clean up

* cleanup

* change mock

* remove unnecessary assert

* review comment
2024-02-04 17:05:51 +01:00
G Johansson e877113b21
Add back logging for core for feature flags in climate (#109572) 2024-02-04 15:15:00 +01:00
Michael ac8a4f4b05
Redact location names in proximity diagnostics (#109600) 2024-02-04 15:12:08 +01:00
Josef Zweck ae70729932
Revert "Add webhook support to tedee integration (#106846)" (#109408) 2024-02-04 15:02:21 +01:00
Joakim Plate eefc6cd50a
Correct flow rate conversion review after merge (#109501) 2024-02-04 15:01:06 +01:00
G Johansson 9831da34ce
Add new climate feature flags to esphome (#109428) 2024-02-04 14:57:26 +01:00
G Johansson baa511b808
Fix group sensor uom's in not convertable device classes (#109580) 2024-02-04 14:56:23 +01:00
Michael 17f1aa644b
Avoid duplicate entity names in proximity (#109413)
* avoid duplicate config entry title

* consecutive range 2..10

* use existing logic
2024-02-04 13:26:51 +01:00
Josef Zweck 6c41540ad8
Bugfix lamarzocco issue (#109596) 2024-02-04 11:29:32 +01:00
David F. Mulcahey 63da42f394
Prevent Flo devices and entities from going unavailable when a single refresh fails (#109522)
* Prevent Flo devices and entities from going unavailable when a single refresh fails

* review comment
2024-02-03 18:30:00 -05:00
Brett Adams da29b4ef16
Add Speed Limit to Tessie lock platform (#106527)
* Add speed limit

* Make regex more readable

* Add tests

* Add test

* Ruff

* Remove extra line

* Update snapshot

* Remove bad snapshot
2024-02-03 22:21:19 +01:00
Michael Hansen c6ea57458c
Pass slots to error messages instead of IDs [rework] (#109410)
Co-authored-by: tetele <tm.sandu@gmail.com>
2024-02-03 12:14:33 +01:00
Jan-Philipp Benecke c233a12946
Fix Tankerkoenig diagnostics file to use right format (#109494)
Fix tankerkoenig diagnostics file
2024-02-03 11:51:23 +01:00
jjlawren 68797feac5
Do not suggest area for portable Sonos speakers (#109350)
* Do not suggest area for portable speakers

* Update tests

* Improve readability, update tests
2024-02-03 09:20:10 +01:00
Erik Montnemery fe4dd2cb93
Improve color mode handling in light groups (#109390)
* Improve color mode handling in light groups

* Update config flow test
2024-02-03 09:00:00 +01:00
G Johansson 82a2980cbd
Adds new climate feature flags to melissa (#109469) 2024-02-03 07:05:33 +01:00
Michael Hansen 3347a3f8a6
More thorough checks in ESPHome voice assistant UDP server (#109394)
* More thorough checks in UDP server

* Simplify and change to stop_requested

* Check transport
2024-02-02 21:26:44 -05:00
Jan-Philipp Benecke 99fcff47f9
Bump aioelectricitymaps to 0.3.0 (#109399)
* Bump aioelectricitymaps to 0.3.0

* Fix tests
2024-02-03 00:04:41 +02:00
Michael e567236cac
Add diagnostics to proximity (#109393) 2024-02-02 23:03:55 +01:00
Erik Montnemery 09ba46ddb9
Mask sensitive data in google_assistant logs (#109366)
* Mask sensitive data in google_assistant logs

* Move common code to homeassistant/util/redact.py

* Move to helpers

* Add tests

* Tweak

* Redact additional logs

* Fix stale docstring

* Don't reveal the length of masked data

* Update test
2024-02-02 22:10:30 +01:00
mkmer 7608f0c9ee
Add independent session in honeywell (#108435) 2024-02-02 17:31:16 +01:00
Erik Montnemery 9d22f07fc6
Use send_json_auto_id in conversation tests (#109354) 2024-02-02 15:46:59 +01:00
Robert Resch 343086a6c8
Improve Ecovacs naming (#109372) 2024-02-02 14:12:26 +01:00
Brett Adams e328d3ec5e
Add Charging sensor to Tessie (#108205) 2024-02-02 13:21:13 +01:00
jan iversen 90ec361fc9
Centralize validation for modbus config (#108906)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-02-02 12:42:12 +01:00
Brett Adams d3dbd6fa70
Change device class of Auto Seat Heater sensors in Tessie (#109240) 2024-02-02 12:38:57 +01:00
Jan Rieger a584429ce0
Use translation placeholders in 1-Wire (#109120) 2024-02-02 12:37:23 +01:00