Commit Graph

13342 Commits (72d3fa6d893f8b1a015c53ddf4f5bb4f43b3be68)

Author SHA1 Message Date
J. Nick Koston e900918e51
Fix reload race in shelly when device is recently offline (#84328) 2022-12-21 09:29:48 +01:00
Erik Montnemery 1a42bd5c4c
Add aliases to area registry items (#84294)
* Add aliases to area registry items

* Update test

* Fix WS API
2022-12-21 08:44:44 +01:00
Kevin Stillhammer ba94485ca1
Handle not existing arrival/departure keys for here_travel_time (#83754)
* handle not existing arrival/departure keys

* Use more concise code

* Add test

* Add testcase for empty arrival/departure
2022-12-20 16:47:43 -08:00
Michael 8a3fc2e82b
Fix attribute check in prometheus exporter (#84321)
* fix attribute check

* add test
2022-12-20 16:32:00 -08:00
Erik Montnemery 057bb6ea0a
Add aliases to device registry items (#84246) 2022-12-20 23:43:31 +01:00
Ernst Klamer 82efbee443
Bump bthome-ble to 2.4.0 (#84189) 2022-12-20 17:54:17 +01:00
Jonathan de Jong b67009dee3
Allow MQTT device trackers to be able to the reset the location name for auto zone inference (#83952)
* adds auto-zone to mqtt device trackers

* black formatting

* abbr

* change abbreviation

* add test

* fade to black

* Modify custom overrides

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* add custom + abbr payload and fix test docstrings

* change auto_zone to reset

* change RST to None, address isort

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-12-20 17:38:40 +01:00
Franck Nijhof 4ef7bb9bbe
Extract Forecast.Solar DataUpdateCoordinator into module (#83859) 2022-12-20 17:24:27 +01:00
Rami Mosleh 78cc547782
Remove scan_interval and manual options from speedtestdotnet (#84295) 2022-12-20 16:01:28 +01:00
Martin Hjelmare 6a8d9a91cb
Fix matter websocket reconnect (#84192) 2022-12-20 13:06:24 +01:00
Erik Montnemery 1f3da9cf1a
Add aliases to entity registry items (#84239) 2022-12-20 12:10:46 +01:00
Daniel Gangl 8ca92254b6
Correct zamg config flow comments (#81369)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
fixes undefined
2022-12-20 11:47:32 +01:00
Jelte Zeilstra 3fc667f55d
Fix error when describing deCONZ events of removed devices (#84194)
* Fix error when describing deCONZ events of removed devices

* Apply suggestions from code review

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-12-20 10:06:01 +01:00
Erik Montnemery 3884e16b46
Add tests.common.ANY (#84240) 2022-12-20 08:20:42 +01:00
Aaron Godfrey 3405fa60ec
Add more types to the todoist integration (#84210)
* Add more types to the todoist integration.

* Update tests.

* Update homeassistant/components/todoist/calendar.py

Pass f-string directly to strftime.

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* Add back mistakenly removed local var.

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2022-12-19 20:29:57 -08:00
J. Nick Koston 53363cf7e8
Implement an active update coordinator for polling ble devices that get data from both advertisements and active connections (#84207) 2022-12-19 16:09:29 -10:00
Aaron Bach ace20782f1
Clean up Notion config flow (and tests) (#84007)
* Clean up Notion config flow (and tests)

* Code review
2022-12-19 15:03:58 -07:00
Aaron Bach 0ccac69ce1
Remove `airvisual_pro` code from `airvisual` (#84254) 2022-12-19 12:32:33 -07:00
Aaron Bach 09ae02fd56
Migrate AirVisual Pro devices to the `airvisual_pro` domain (#83882)
* Migration AirVisual Pro devices to the `airvisual_pro` domain

* Fix tests

* Remove airvisual_pro dependency

* Add repairs item

* Only fire repairs issue if automations exist

* Fix tests
2022-12-19 10:48:36 -07:00
epenet f4c13645d2
Add support for CCF volume unit (#84029) 2022-12-19 14:57:04 +01:00
J. Nick Koston bb3feceb57
Fix connectable Bluetooth devices not going available after scanner recovers (#84172) 2022-12-19 13:37:29 +01:00
Martin Hjelmare 4461e0f262
Clean mysensors test type errors (#84178) 2022-12-19 12:45:17 +01:00
Michaël Arnauts 627a208d9f
Use a global const for CONF_UUID (#84093) 2022-12-19 12:16:30 +01:00
Paolo Bonzini 52594717ca
Fix manual.alarm_control_panel RestoreEntity bugs (#82990)
* manual: add previous state for TRIGGERED as well

This will be useful to properly restore timers on restart.

* manual: correctly restore timers on startup
2022-12-19 11:19:24 +01:00
hahn-th 5e5e89ea18
Add device HmIP-DRDI3 (#83337) 2022-12-18 12:44:49 -07:00
Aaron Bach d423cbf8eb
Add ability to add/remove PurpleAir sensors in an existing config entry (#83440) 2022-12-18 11:30:05 -07:00
Aaron Bach 4c73826baf
Add re-auth flow to AirVisual Pro (#84012)
* Add re-auth flow to AirVisual Pro

* Code review
2022-12-18 11:00:08 -07:00
Jelte Zeilstra f99d26231f
Add state_class to Tradfri battery and air quality sensors (#84185) 2022-12-18 16:52:08 +01:00
Rami Mosleh 10a6c56fec
Move speedtestdotnet coordinator to separate file (#83979) 2022-12-18 10:57:17 +01:00
Martin Hjelmare f29024795b
Clean up matter adapter (#84144) 2022-12-17 23:44:19 +01:00
tronikos d6158c0fcc
Google Assistant SDK: Support non en-US language code (#84028)
* Support non en-US language code

* Get default language_code based on HA config

* Revert bumping gassist-text
Will be done in a separate PR
2022-12-17 14:40:24 -08:00
Maciej Bieniek d9903c4cf9
Bump `brother` and `pysnmplib` (#84107)
* Bump brother version

* Bump pysnmplib version

* Update sensor platform

* Update switch platform

* Update tests

* Bump brother

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-12-17 12:34:43 +01:00
J. Nick Koston 9f10bd46ac
Rename Bluetooth active_update_coordinator to active_update_processor (#84115) 2022-12-16 22:25:43 -10:00
epenet 1af72e3671
Add device class to withings (#84103) 2022-12-16 20:04:07 +01:00
Duco Sebel b41d0be952
Improve HomeWizard request issue reporting (#82366)
* Trigger reauth flow when HomeWizard API was disabled

* Add tests for reauth flow

* Fix typo in test

* Add parallel updates constant

* Improve error message when device in unreachable during config

* Set quality scale

* Remove quality scale

* Throw error instead of abort when setup fails

* Adjust test for new setup behaviour

* Trigger reauth flow when API is disabled and continue retrying

* Reload entry and raise AuthFailed during init

* Abort running config flow

* Listen for coordinator updates to trigger reload

* Use build-in backoff system

* Fix failing test

* Test reauth flow is active after disable-api init

* Test reauth flow removal
2022-12-16 10:53:54 -05:00
epenet f5a8ce4aca
Split platform attributes in withings (#84099) 2022-12-16 15:35:03 +01:00
Franck Nijhof 80b3572627
Rename image integration to image_upload (#84063)
* Rename image integration to image_upload

* fix test
2022-12-16 08:16:38 -05:00
epenet 14ee3f1ddc
Move unused function in withings (#84089)
* Remove unused function in withings

* Move to tests

* Remove reference to attribute.platform

* Move WITHINGS_MEASUREMENTS_MAP to tests

* measute_type > measure_type

* One more
2022-12-16 10:50:20 +01:00
Ville Skyttä f02b6f1119
Huawei LTE SSDP improvements (#81643)
* Recognize more SSDP friendly names as "ours"

* Trigger on SoyeaLink devices

* Pass discovered URL through context, it does not persist via user_input

* Use manufacturer from SSDP

* Actually use serial number if available, update URL for configured

* Remove heuristic friendly name filtering against non-LTE devices
2022-12-14 23:48:25 +01:00
Robert Svensson 360f36eb71
Unifi use entity description with sensors (#81930)
* Move bandwidth sensors

* Add uptime sensor

* Use bound

* Fix review comments from other PR
2022-12-14 20:54:33 +01:00
Aaron Bach 9f1c5d70bc
Add re-auth flow to PurpleAir (#83445)
* Add re-auth flow to PurpleAir

* Code review

* Code review

* Code review
2022-12-14 12:29:07 -07:00
Erik Montnemery 774ebc760c
Ignore certain device trigger validation errors (#83972) 2022-12-14 16:41:11 +01:00
Rami Mosleh c0a7934828
Move transmission to an updated library (#83932)
fixes undefined
2022-12-14 16:36:37 +01:00
Michael Hansen 98eabd2f68
Update intent response (#83962)
* Add language to conversation and intent response

* Move language to intent response instead of speech

* Extend intent response for voice MVP

* Add tests for error conditions in conversation/process

* Move intent response type data into "data" field

* Move intent response error message back to speech

* Remove "success" from intent response

* Add id to target in intent response

* target defaults to None

* Update homeassistant/helpers/intent.py

* Fix test

* Return conversation_id and multiple targets

* Clean up git mess

* Fix linting errors

* Fix more async_handle signatures

* Separate conversation_id and IntentResponse

* Add unknown error code

* Add ConversationResult

* Don't set domain on single entity

* Language is required for intent response

* Add partial_action_done

* Default language in almond agent

* Remove partial_action_done

* Fix linting

* Rename success/fail targets

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-13 23:32:30 -05:00
J. Nick Koston b7c7e7f57b
Try to reconnect disconnected shelly devices as soon as they discovered by zeroconf (#83872) 2022-12-13 14:22:34 -10:00
Michael Hansen 961c8cc167
Update intent response (#83858)
* Add language to conversation and intent response

* Move language to intent response instead of speech

* Extend intent response for voice MVP

* Add tests for error conditions in conversation/process

* Move intent response type data into "data" field

* Move intent response error message back to speech

* Remove "success" from intent response

* Add id to target in intent response

* target defaults to None

* Update homeassistant/helpers/intent.py

* Fix test

* Return conversation_id and multiple targets

* Clean up git mess

* Fix linting errors

* Fix more async_handle signatures

* Separate conversation_id and IntentResponse

* Add unknown error code

* Add ConversationResult

* Don't set domain on single entity

* Language is required for intent response

* Add partial_action_done

* Default language in almond agent

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-13 16:46:40 -06:00
J. Nick Koston 0e2ebfe5c4
Move bluetooth watchdog into the scanner base class (#83888) 2022-12-13 11:57:40 -10:00
Aaron Bach fed308b59d
Add diagnostics support to PurpleAir (#82446)
Add diagnostics to PurpleAir
2022-12-13 09:14:19 -07:00
epenet 85235ea5f6
Use FREQUENCY device class in integrations (#83916)
* Use FREQUENCY device class in integrations

* Adjust tesla

* Undo goodwe

* Adjust cpuspeed tests
2022-12-13 14:14:42 +01:00
epenet 69bc95a715
Use DATA_SIZE device class in integrations (#83895) 2022-12-13 10:17:56 +01:00
Yuxin Wang 677f0dc335
Remove deprecated apcupsd YAML config (#83801) 2022-12-13 08:52:05 +01:00
Artem Draft e32074c74e
Fix saving options with missing ignored sources in BraviaTV (#83891)
fix https://github.com/home-assistant/core/issues/83217
fixes undefined
2022-12-13 08:45:04 +01:00
Aaron Bach e64973c7cc
Add PurpleAir integration (#82110) 2022-12-12 20:32:11 -07:00
J. Nick Koston 692a732555
Fix HomeKit media players when entity has duplicate sources (#83890)
fixes #83852 fixes #83698
2022-12-12 21:29:06 -05:00
Aaron Bach 3d4ee5906d
Add integration for AirVisual Pro (#79770)
* Add integration for AirVisual Pro

* Tests

* A few more redactions

* Loggers

* Consistency

* Remove unnecessary f-string

* Use `entry.as_dict()` in diagnostics

* One call

* Integration types

* Cleanup

* Import cleanup

* Code review

* Code review

* Code review
2022-12-12 14:28:27 -07:00
Jafar Atili 2d206e7e31
Bump pyswitchbee to 1.7.3 (#83748) 2022-12-12 16:00:30 +01:00
epenet 583b4aef07
Enable automatic conversion for pressures (#83525)
* Enable automatic conversion between bar and psi

* Fix tests

* Fix mazda tests

* Fix oncue tests

* Adjust US pressures

* Adjust metric pressures

* Adjust tests

* Adjust tests
2022-12-12 12:42:35 +01:00
J. Nick Koston 80a8d5443d
Improve remote bluetooth scanner diagnostics and add missing test cover (#83796) 2022-12-11 21:33:30 -10:00
Christopher Bailey ec47f7b6ff
Add text platform for UniFi Protect (#83674) 2022-12-11 21:30:24 -10:00
J. Nick Koston 9008006ac8
Restore remote discovered devices between remote scanner restarts (#83699) 2022-12-11 09:02:55 -10:00
Michael Chisholm fbab7413a5
Match config entries for dlna_dmr based on device MAC, in addition to UDN (#74619)
* Factor out _is_dmr_device function

* Use DMR device's MAC to match existing config entries

Some DMR devices change their every time they boot, against the DMR specs.
Try to match such devices to existing config entries by using their MAC
addresses.

* Add DMR device's MAC as a device_registry connection

* Use doc-only IPs (RFC5737) for dlna_dmr tests
2022-12-11 13:40:35 -05:00
Maximilian 0aa4d0fb7b
Bump pynina to 0.2.0 (#83726)
* Bump pynina to version 0.2.0

* Update tests with new url
2022-12-11 12:43:45 +02:00
Paulus Schoutsen d3df4dd3c1
ESPHome: Use MAC as unique ID (#83741)
* ESPHome: Use MAC as unique ID

* Normalize incoming zeroconf/dhcp macs

* Update comment

* Test ESPHome without mac in zeroconf

* Use format_mac

* Remove unique ID index from DomainData
2022-12-10 22:26:42 -05:00
Allen Porter 1ac7f5f013
Make google calendar fail louder on invalid google_calendars.yaml (#83668)
* Make google calendar fail louder on invalid google_calendars.yaml

* Update homeassistant/components/google/__init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Update homeassistant/components/google/__init__.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-12-10 09:26:28 -08:00
Erik Montnemery d2fc3a22e2
Drop title from repairs flows (#83627) 2022-12-10 11:43:22 +01:00
epenet 535aba10ee
Use DataRate unit and device class in integrations (#83610) 2022-12-10 11:41:44 +01:00
tronikos 2cfdae0c45
Google Sheets: small cleanup (#83685)
* Remove duplicate object key in strings.json

* Remove async_entry_has_scopes check

This is not needed. This was copied from google calendar integration
where it was needed to reauth when the scope changed.

* Remove unused constant in application_credentials

* Move constant to the file used

* fix warning use-implicit-booleaness-not-len

* Remove not accessed parameters

* Revert "Remove async_entry_has_scopes check"

This reverts commit 63e24f84cc.
2022-12-09 20:57:40 -08:00
Kevin Stillhammer ab3f0fc63b
Handle special transit errors for here_travel_time (#83649)
Handle special transit errors
2022-12-09 21:09:55 -05:00
J. Nick Koston fec887420d
Fix delay setting up new Yale Access Bluetooth entries (#83683)
Entries took a while to setup because of the
async_wait_init_flow_finish call in _async_setup_component

The delay was so long that users thought the integration
was broken

We had a wait in place for advertisements to arrive
during discovery in case the lock was not
yet seen.  Since integration discovery is deferred
until after startup this wait it no longer needed
2022-12-09 20:55:06 -05:00
Michael ea95f74d6d
Fix loading of Fritz!Smarthome issues on older Fritz!Box (#83688)
* check if templates are available

* add test
2022-12-09 20:54:22 -05:00
aschmitz ca5dc01207
Hide Aranet update interval by default (#83694) 2022-12-09 20:33:23 -05:00
J. Nick Koston 09f9bb05dc
Add bluetooth diagnostics to shelly (#83438)
* Add bluetooth diagnostics to shelly

* Add tests

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-12-09 10:55:10 -05:00
tronikos 5d31673465
Google Assistant SDK integration (#82328)
* Copy google_sheets to google_assistant_sdk

This is to improve diff of the next commit with the actual implementation.

Commands used:
cp -r homeassistant/components/google_sheets/ homeassistant/components/google_assistant_sdk/
cp -r tests/components/google_sheets/ tests/components/google_assistant_sdk/

find homeassistant/components/google_assistant_sdk/ tests/components/google_assistant_sdk/ -type f | xargs sed -i \
-e 's@google_sheets@google_assistant_sdk@g' \
-e 's@Google Sheets@Google Assistant SDK@g' \
-e 's@tkdrob@tronikos@g'

* Google Assistant SDK integration
Allows sending commands and broadcast messages to Google Assistant.

* Remove unnecessary async_entry_has_scopes check

* Bump gassist-text to fix protobuf dependency
2022-12-09 07:14:43 -08:00
Erik Montnemery cc132bfad6
Make it optional to provide a title when finishing a FlowHandler (#83534)
* Make it optional to provide a title when finishing a FlowHandler

* Make ConfigEntry.title a str

* Revert changes in ConfigFlow

* Adjust tests
2022-12-09 10:24:08 +01:00
epenet 061cef1a5e
Use SoundPressure unit and device class in integrations (#83585)
* Use SoundPressure unit and device class in integrations

* Adjust tests
2022-12-09 07:56:09 +01:00
Paulus Schoutsen ea8511bcfc
Disable multi-pan (#83603)
* Disable multi-pan

* One more test skip
2022-12-08 22:43:52 -05:00
Michael Hansen e71eb8dfe2
Update intent response (#83560)
* Add language to conversation and intent response

* Move language to intent response instead of speech

* Extend intent response for voice MVP

* Add tests for error conditions in conversation/process

* Move intent response type data into "data" field

* Move intent response error message back to speech

* Remove "success" from intent response

* Add id to target in intent response

* target defaults to None

* Update homeassistant/helpers/intent.py

* Fix test

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-08 20:30:08 -05:00
epenet 7f345e7672
Add entity translations to Renault (#83392) 2022-12-08 23:48:24 +01:00
Guido Schmitz 4f63eab453
Fix sensor tests in devolo Home Control (#83586)
Fix sensor tests
2022-12-08 22:52:20 +02:00
epenet ec0af2f25d
Use SoundPressure unit and device class in awair (#83582) 2022-12-08 20:56:02 +01:00
Guido Schmitz 500b00bd66
Add sensor tests for devolo_home_control (#74292) 2022-12-08 20:40:45 +02:00
Erik Montnemery c4afc33fc5
Add abc.ABC to classes with abstract methods (#83546) 2022-12-08 17:50:36 +01:00
Michael Hansen ac87528bec
Add language to conversation and intent response (#83486)
* Add language to conversation and intent response

* Add language parameter to conversation/process service

* Move language to intent response instead of speech

* Add language to almond conversation agent

* Fix intent test
2022-12-08 11:39:28 -05:00
Joakim Sørensen f5cfd0329c
Use the async_migrate_paypal_agreement function to get the migration URL (#83469)
* Use the async_migrate_paypal_agreement function to get the migration URL

* Update URL

* Handle timeout error
2022-12-07 12:02:22 -07:00
Joakim Sørensen 8ed6fcd58e
When an account exist without a subscription "provider" will not exist (#83472) 2022-12-07 16:48:34 +01:00
Franck Nijhof 12a81cc9f4
Remove doubtful repairs issue from UniFi Protect (#83463) 2022-12-07 10:46:28 -05:00
Maciej Bieniek e11917b7cb
Fix restored temperature values in Shelly climate platform (#83428)
* Set last_target_temp value according the unit system

* Convert restored temperature values

* Add test

* Improve comments

* Move _last_target_temp value to constants
2022-12-07 09:11:18 +02:00
J. Nick Koston b665a060f7
Do not try to stop the shelly ble scanner if not connected (#83424)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-12-06 22:57:54 -05:00
Raman Gupta 41d5256533
Add via_device support to zwave_js (#83219)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-12-06 22:56:33 -05:00
Martin Hjelmare 511fd293b6
Add matter switch platform (#83149) 2022-12-06 21:57:24 +01:00
Martin Hjelmare 9d96a021c7
Add matter sensor platform (#83147) 2022-12-06 21:39:00 +01:00
Martin Hjelmare e7a06046a7
Add matter binary sensor platform (#83144) 2022-12-06 14:28:06 -05:00
Raman Gupta 8d1a70391e
Improve zwave_js test coverage (#83372)
* Improve zwave_js test coverage

* review comments and clean up test
2022-12-06 12:18:21 -07:00
Allen Porter 4819576b62
Tighten validation on calendar create event websocket (#83413) 2022-12-06 13:04:32 -05:00
Shay Levy e1923bc13b
Add Shelly support for Plus WallDimmer US (#83385) 2022-12-06 19:44:17 +02:00
Martin Hjelmare 874315c3fc
Bypass zwave_js config validation if driver not ready (#83410) 2022-12-06 12:41:09 -05:00
Marcel van der Veldt 4c8f7bbf50
Replace fixtures for Matter tests (#83328)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-06 12:38:13 -05:00
Michał Huryn 923fa473e1
Blebox add thermoBox to climate (#81090)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-06 14:43:35 +01:00
Sean Chen 985c1b31e1
Use new device class in nws (#83172)
* Replace unit consts with enums

* Remove default entries in NWSSensorEntityDescription

* Replace wind icon property with setting device_class in Wind Speed and Wind Gust sensors
2022-12-06 13:27:58 +01:00
Franck Nijhof de352c520c
Fix Goalzero time to empty sensor device class (#83389)
* Fix Goalzero time to empty sensor device class

* Fix tests
2022-12-06 12:14:15 +01:00
epenet 72fd57a685
Use new device class in accuweather (#83318) 2022-12-06 11:54:59 +01:00
Franck Nijhof 6c74809400
Remove unused device class from Renault select (#83330)
* Remove unused device class from Renault select

* Fix tests

* More
2022-12-06 11:27:07 +01:00
Franck Nijhof c25ba19ffd
Use enum sensor device class in Litter-Robot (#83290) 2022-12-06 11:08:05 +01:00
Jevgeni Kiski d62bdbb9ff
Add vallox fan speed control (#82548)
* fan.set_percentage + tests

* let's see what is not yet covered

* Apply suggestions from code review

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

* tests fix

* vallox_websocket_api 3.0.0

* more coverage

* test coverage

* Update tests/components/vallox/test_fan.py

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

* raise exceptions on user input

* Supported features are different per preset mode.

* Test fixes

* Static supported features is back.

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-06 11:00:59 +01:00
Raman Gupta 87e2bbbfab
Fix zwave_js_value_updated event (#83358)
* Fix zwave_js_value_updated event

* Fix zwave_js_value_updated event
2022-12-06 10:25:37 +01:00
epenet 0c9a78fb8e
Use tuple in test parametrization (#83379) 2022-12-06 09:46:10 +01:00
Jan Bouwhuis 7ed1d4988b
Add QoS parameter to MQTT websocket_subscribe (#83241) 2022-12-06 09:31:19 +01:00
Erik Montnemery 587381440f
Fix repairing datetime precision for PostgreSQL (#83351) 2022-12-05 22:33:06 -05:00
Franck Nijhof 762eb57636
Validate state class and unit of measurement for non-numeric sensors (#83344)
* Validate state class and unit of measurement for non-numeric sensors

* Remove duration

* Fix rest tests
2022-12-06 00:07:02 +01:00
Bouwe Westerdijk 2c4f9ca037
Update plugwise to v0.25.14, improve number detection (#83345)
fixes undefined
2022-12-05 20:17:19 +01:00
Franck Nijhof e918adb25d
Clean up Zodiac (#83334) 2022-12-05 20:08:05 +01:00
Erik Montnemery 67875b99a3
Refactor support for integrations to drop custom unit conversion (#83228)
* Refactor support for integrations to drop custom unit conversion

* Fix lying comment

* Address review comment
2022-12-05 16:12:37 +01:00
Franck Nijhof 1f7a7d5cb5
Use enum sensor device class in Nettigo Air Monitor (#83314) 2022-12-05 16:05:03 +01:00
Franck Nijhof aa4a0df194
Migrate Logitech Harmony Hub translations (#83308) 2022-12-05 13:57:13 +01:00
Franck Nijhof 06c8b838b5
Use enum sensor device class in Season (#83301) 2022-12-05 13:48:32 +01:00
Klaas Schoute 2602b45ec8
Bump package for Garage Amsterdam (#83167)
* Bump to new package version

* Change the class name used in the new package

* Fix failing test with using old package name
2022-12-05 13:12:46 +01:00
Garrett efc637cb2b
Bump subarulink to v0.7.0 (#83213)
fixes undefined
2022-12-05 10:53:05 +01:00
Franck Nijhof 40d337479e
Use enum sensor device class in UptimeRobot (#83111) 2022-12-05 10:36:16 +01:00
Christopher Bailey ee7022dc67
Update UniFi Protect ring entity to use event entity (#83270) 2022-12-04 17:06:55 -10:00
Avi Miller 88c8eef4eb
Populate suggested_area using the LIFX group name for each device (#83259)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-12-04 16:31:08 -10:00
Stephan Singer 64a72daa27
Add IPv6 sensor to fritz component (#75708)
* Add IPv6 sensor to fritz component

* Cast return type to string

* Make ipv6 sensor suitable

* simplify cast to str

* use extisting property

Co-authored-by: chemelli74 <simone.chemelli@gmail.com>
Co-authored-by: mib1185 <mail@mib85.de>
2022-12-05 00:48:41 +01:00
Joe Rogers f1ee920463
Handle numeric versions in mqtt update (#83218)
* Handle numeric versions in mqtt update

* Remove need for type:ignore

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-12-04 21:52:48 +01:00
Simone Chemelli e436f6a7b2
Fix missing title placeholders in Synology DSM reauth flow (#83238)
* Fix missing title placeholders in reauth flow

* fix tests

Co-authored-by: mib1185 <mail@mib85.de>
2022-12-04 10:11:24 -08:00
Matthias Alphart 4ca6db825c
Address late KNX flow tests review (#83208)
* Address late KNX flow tests review

* Update tests/components/knx/test_config_flow.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-04 18:39:27 +01:00
Milan Meulemans cefdce5002
Remove deprecated GCM API from html5 (#83229)
* Remove deprecated GCM API

* Cleanup code after removing GCM

* Make vapid required

* Use dict[key] instead of dict.get(key) for vapid config
2022-12-04 18:34:54 +01:00
Jan Bouwhuis de77132a5a
Add the QoS in the MQTT debug log (#83195)
Logging the MQTT QoS in the debug log
2022-12-04 15:03:41 +01:00
J. Nick Koston 955d4abf13
Fix missing services with esp32 proxies (#83192) 2022-12-03 13:50:59 -05:00
Olen 2a0496a3a9
Support older twinkly devices without effects (#83145)
fixes undefined
2022-12-03 13:23:29 -05:00
Kevin Stillhammer f88d22b833
Raise UpdateFailed when here_travel_time cannot find_location (#83157)
Fixes https://github.com/home-assistant/core/issues/83100
fixes undefined
2022-12-03 13:06:10 -05:00
Matthias Alphart 6cef37641c
KNX Config/OptionsFlow: Test connection to manually configured tunnel (#82872) 2022-12-03 12:53:12 +01:00
Franck Nijhof 58f2fc8610
Use enum sensor device class in Moon (#83108)
* Use enum sensor device class in Moon

* Adjust tests
2022-12-03 11:25:04 +01:00
Franck Nijhof b40923a4cd
Use enum sensor device class in PrusaLink (#83107) 2022-12-03 11:22:36 +01:00
Alex Yao 652fedf4d1
Fix html5 Firefox Notifications (#82556)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
fixes undefined
2022-12-02 20:51:16 -05:00
J. Nick Koston 4a56461d3c
Fix reauth with esphome when adding noise encryption (#83164)
* Fix reauth with esphome when adding noise encryption

fixes #80813

* fix with unique id
2022-12-02 19:49:13 -05:00
Philip Allgaier d3b35ca2a7
Address review comments for shopping list websockets (#83143) 2022-12-02 19:33:25 +01:00
Franck Nijhof a4a80f367b
Use enum sensor device class in HomeKit Controller (#83109) 2022-12-02 14:50:01 +01:00
Erik Montnemery 46500beefc
Enable strict typing of analytics (#83119) 2022-12-02 14:05:08 +01:00
Philip Allgaier 80debae96d
Add support for item removal to shopping list (#82992) 2022-12-02 12:40:59 +01:00
ollo69 5789790d32
Review AsusWRT sensors tests (#71307)
* Review AsusWRT sensors tests

* Fix grammar

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-02 11:22:16 +01:00
Franck Nijhof ce00f093d6
Add enum device_class and state options property to sensor entities (#82489) 2022-12-02 09:11:15 +01:00
Christopher Bailey 6fb9bdec93
Assorted fixes for UniFi Protect (#83032) 2022-12-01 16:37:44 -05:00
Allen Porter 5d1ca73a34
Add create and delete for Google Calendar events (#83034)
* Add Google Calendar create/delete support

Includes editing for recurring events

* Fix default calendar access role

* Formatting improvements

* Address other details that have changed due to local sync

* Update tests/components/google/test_calendar.py

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

* Update tests/components/google/test_calendar.py

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

* Update tests/components/google/test_calendar.py

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

* Increase test coverage

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-01 21:39:58 +01:00
Marcel van der Veldt e2308fd15c
Add matter integration BETA (#83064)
* Add matter base (#79372)

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>

* Add matter server add-on flow (#82698)

* Add matter server add-on flow

* Fix stale error argument

* Clean docstrings

* Use localhost as default address

* Add matter websocket api foundation (#82848)

* Add matter config entry add-on management (#82865)

* Use matter refactored server/client library (#83003)

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

* Bump python-matter-server to 1.0.6 (#83059)

* Extend matter websocket api (#82948)

* Extend matter websocket api

* Finish docstring

* Fix pin type

* Adjust api after new client

* Adjust api to frontend for now

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-01 20:44:56 +01:00
Daniel Hjelseth Høyer 87b6bb45d0
Remove home id from Tibber diagnostics (#83066)
Tibber diagnostic

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

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-12-01 20:24:17 +02:00
Todd Johnson 5533368171
Add dialect support to google_translate (#81768)
* Add TLD option support to google_translate

* Fix tests for added TLD option in google_translate

* Add Language to TLD mapping, Make tld configurable in google_translate

* Move const to dedicated file in google_translate
2022-12-01 13:31:19 +01:00
Keilin Bickar f4a58c7dc7
Bump sense_api to 0.11.0 and add refresh token support (#83030)
fixes undefined
2022-12-01 10:53:48 +01:00
Erik Montnemery 8e617bbc1d
Add `translation_key` property to entites (#82701)
* Add translation_key attribute to entity state

* Update accuweather test

* Index entity translation keys by platform

* Store translation key in entity registry
2022-12-01 09:34:09 +01:00
Joakim Sørensen 817bbfe6aa
Bump hass-nabucasa from 0.56.0 to 0.59.0 (#82987)
* Bump hass-nabucasa from 0.56.0 to 0.58.0

* 0.59.0
2022-12-01 09:08:39 +01:00
J. Nick Koston c91417e71f
Fix yale access bluetooth locks delaying startup when key changes (#83024)
If the keys changed for the yale locks, the locks would be
slow to setup. Because august had yalexs_ble as an
after dep, it would be waiting with the new keys but not
able to setup because it was waiting for the locks to setup
which would be trying over and over until they failed because
the key had changed out from under it.

This change moves some more code into the lib to avoid
the dep and allows both to startup at the same time so
the cloud service can feed the new keys in if needed without
waiting for the lock to fail to setup

changelog: https://github.com/bdraco/yalexs-ble/compare/v1.9.8...v1.10.0
2022-12-01 03:36:02 +01:00
Kevin Stillhammer e158546425
Add missing @callback decorator in here_travel_time sensor (#83009) 2022-11-30 22:40:17 +01:00
Aaron Bach 671e6b3832
Remove old system ID format from SimpliSafe base stations (#82993) 2022-11-30 22:10:56 +01:00
Allen Porter 532ab12a48
Local calendar integration (#79601) 2022-11-30 21:20:21 +01:00
puddly 7f96fbb035
Bump ZHA dependencies (#82999) 2022-11-30 20:56:07 +01:00
Matthias Alphart a43d944309
Address late KNX flow tests review (#82975)
* KNX flow tests review

* patch out async_setup_entry in options-flow tests

* remove unneeded hass.async_block_till_done()

* Update test_config_flow.py

* autouse setup mock

* patch out async_setup too

* rename fixture according to pytest docs

* test call count to async_setup_entry

* dict access instead of .get()
2022-11-30 18:54:06 +01:00
Willem-Jan van Rootselaar 949dede16b
Add support for BSBLAN firmware v3 (#82288)
* bump python-bsblan version to 0.5.8

* add static_state

this holds values that only needs retrieving once in a while

* update diagnostics  json with the right info
2022-11-30 16:36:33 +01:00
Kevin Stillhammer dffdc78915
Make HERETravelTimeSensor extend RestoreSensor (#82400) 2022-11-30 16:13:11 +01:00
epenet 5be961f07f
Use SchemaOptionsFlowHandler in blink (#82903)
* Use SchemaOptionsFlowHandler in blink

* Use config entry update listener

* Adjust tests

* Simplify options init

* Don't reload

* Use selector
2022-11-30 14:59:26 +01:00
epenet cbf8a41eed
Add ability to edit sensors in scrape config flow (#82926)
* Add ability to edit sensors in scrape config flow

* Fix docstring

* Update homeassistant/components/scrape/config_flow.py

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

* docstring

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-11-30 14:16:28 +01:00
epenet 92fef0f2ba
Improve resource validation in scrape config flow (#82965)
* Improve resource validation in scrape

* Coverage
2022-11-30 14:05:01 +01:00
Christopher McCurdy 4167edc52d
Create a UUID from given LG soundbar device name (#81918)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Fixes https://github.com/home-assistant/core/issues/77524
fixes undefined
2022-11-30 12:53:49 +01:00
Duco Sebel c2d372dd13
Fix HomeWizard code quality issues (#82973)
* Sort platforms a-z

* Collect all switch entities and load in a single call

* Add test for button press
2022-11-30 10:28:28 +01:00
epenet 200f29563a
Enforce MediaPlayerState in group (#78465)
* Enforce MediaPlayerState in group

* Adjust

* Use self._attr_state

* Add warning

* Add group name to logger warning

* Remove logger warning

* Remove duplicate code

* Add type hints to tests

* Improve coverage

* Improve coverage

* suppress ValueError
2022-11-30 10:13:14 +01:00
J. Nick Koston a28214caec
Fix bluetooth remote connections not picking the best path (#82957) 2022-11-29 19:56:31 -10:00
Christopher Bailey 6c5aa3b8f9
Make UniFI Protect views more versatile (#82928) 2022-11-29 18:49:16 -10:00
Marvin Wichmann 1908feab79
Increase file upload limit to 100 MB (#77117)
* Increase file upload limit to 100 MB

* Remove comment

* Add test and fix chunk processing

* Add test for wrong field

* Add review suggestions

* Use nonlocal and remove unneeded executor task

* Use Janus to process chunk uploading

* Address review comments

* Address review comments #2

* Improve tests

* Fix discovery test

* Fix tests
2022-11-29 20:46:34 -05:00
J. Nick Koston a3ec9529ec
Fix lutron caseta triggers when device fails to setup before startup finishes (#82714)
Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes #82495 & fixes #81999
2022-11-29 20:46:01 -05:00
Joakim Plate c576a68d33
Upgrade pytest-aiohttp (#82475)
* Upgrade pytest-aiohttp

* Make sure executors, tasks and timers are closed

Some test will trigger warnings on garbage collect, these warnings
spills over into next test.

Some test trigger tasks that raise errors on shutdown, these spill
over into next test.

This is to mimic older pytest-aiohttp and it's behaviour on test
cleanup.

Discussions on similar changes for pytest-aiohttp are here:
https://github.com/pytest-dev/pytest-asyncio/pull/309

* Replace loop with event_loop

* Make sure time is frozen for tests

* Make sure the ConditionType is not async

  /home-assistant/homeassistant/helpers/template.py:2082: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    def wrapper(*args, **kwargs):
  Enable tracemalloc to get traceback where the object was allocated.
  See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.

* Increase litejet press tests with a factor 10

The times are simulated anyway, and we can't stop the normal
event from occuring.

* Use async handlers for aiohttp

tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_still_image_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_get_stream_from_camera
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
tests/components/motioneye/test_camera.py::test_camera_option_stream_url_template
  /Users/joakim/src/hass/home-assistant/venv/lib/python3.9/site-packages/aiohttp/web_urldispatcher.py:189: DeprecationWarning: Bare functions are deprecated, use async ones
    warnings.warn(

* Switch to freezegun in modbus tests

The tests allowed clock to tick in between steps

* Make sure skybell object are fully mocked

Old tests would trigger attempts to post to could services:

```
DEBUG:aioskybell:HTTP post https://cloud.myskybell.com/api/v3/login/ Request with headers: {'content-type': 'application/json', 'accept': '*/*', 'x-skybell-app-id': 'd2b542c7-a7e4-4e1e-b77d-2b76911c7c46', 'x-skybell-client-id': '1f36a3c0-6dee-4997-a6db-4e1c67338e57'}
```

* Fix sorting that broke after rebase
2022-11-29 22:36:36 +01:00
Erik Montnemery b7652c78ee
Add options flow to enable multiprotocol support on sky connect (#82525) 2022-11-29 16:34:55 -05:00
Jan Bouwhuis 2785b2b52f
Add mqtt text platform (#82884) 2022-11-29 20:31:05 +01:00
Joakim Sørensen 10e7d6e04d
Add supervisor key to homassistant_alerts (#82862) 2022-11-29 13:22:36 -05:00
Matthias Alphart 0561c14d53
Add `text` platform for KNX (#82811) 2022-11-29 18:05:51 +01:00
epenet db9e8d2fa1
Use OptionsFlowWithConfigEntry in braviatv (#82902)
* Use OptionsFlowWithConfigEntry in braviatv

* Make use of add_suggested_values_to_schema

* Full coverage
2022-11-29 16:48:51 +01:00
epenet 23831d746e
Add ability to remove sensors in scrape config flow (#82912)
* Add ability to remove sensors in scrape config flow

* Add test

* Cleanup registry

* Cleanup

* Adjust comments

* Fix bad cleanup
2022-11-29 13:36:33 +01:00
Olen 33cd59d3c2
Add Twinkly effects (#82861)
* Add Twinkly effects

* Remove spurious comment
2022-11-29 11:15:30 +01:00
hahn-th 9f8dea10f7
Add support for HmIP-eTRV-E to homematicip_cloud (#82876)
* Add device HmIP-eTRV-E

* Fix test
2022-11-29 11:13:53 +01:00
Christopher Bailey 596016c2ac
Add new features from new UniFi Protect (#82892)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-11-28 23:44:31 -10:00
Raman Gupta 1453308bc4
Add reproduce state support to `text` platform (#82772)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-11-29 10:27:05 +01:00
Erik Montnemery f869ce9d06
Validate common statistics DB schema errors on start (#79707)
* Validate common statistics db schema errors on start

* Fix test

* Add tests

* Adjust tests

* Disable statistics schema validation in tests

* Update after rebase
2022-11-29 10:16:08 +01:00
epenet 53e05dec02
Add ability to add sensors in scrape config flow (#82802)
* Add ability to add sensors in scrape config flow

* Fix menu

* Adjust comment

* Use sentinel

* Adjust docstring
2022-11-29 10:13:38 +01:00
Raman Gupta 258b9fe663
Support restoring TextEntity native_value (#82770) 2022-11-29 10:09:41 +01:00
J. Nick Koston 46b18367f7
Send back BLE address type when connecting via esphome proxies (#82890) 2022-11-28 18:54:53 -10:00
Joakim Sørensen 7c82b78f8c
Add repair for legacy subscription to cloud integration (#82621) 2022-11-28 23:35:24 +01:00
Joakim Sørensen 82b2aaaa3e
Patch entry setup in upcloud test (#82882) 2022-11-28 22:38:31 +01:00
ark eb25968b31
Add valid country tests to workday sensors (#82799)
fixes undefined
2022-11-28 22:22:57 +01:00
Raman Gupta 71eb45072c
Add device action for `text` platform (#82773) 2022-11-28 20:57:44 +01:00
Jan Bouwhuis 5d4c4a1293
Add humidifier support for Alexa (#81329) 2022-11-28 09:55:22 -10:00
Christopher Bailey b842e26d36
Split UniFi Protect object sensor into multiple (#82595) 2022-11-28 09:07:53 -10:00
Erik Montnemery 892be99ca0
Check if Multi-PAN addon is using the HA Yellow's radio (#82853) 2022-11-28 13:55:07 -05:00
Erik Montnemery a038314d8b
Add display unit to WS recorder/get_statistics_metadata (#82870) 2022-11-28 13:46:57 -05:00
Avi Miller 9849735dc5
Bump aiolifx to 0.8.7 and refactor config flow connection (#82818)
Signed-off-by: Avi Miller <me@dje.li>

Signed-off-by: Avi Miller <me@dje.li>
2022-11-28 17:27:27 +01:00
Marc Mueller 63d519c1a8
Spelling updates (#82867) 2022-11-28 16:51:43 +01:00
Marc Mueller d72802cfb0
Spelling - runtime and test changes (#82868) 2022-11-28 16:42:20 +01:00
Shay Levy 4c3d481b7b
Parametrize Switcher button tests (#82849) 2022-11-28 14:57:52 +01:00
Paulus Schoutsen 7dff44b3e9
Fix mobile app passing incorrect device ID when scanning tag (#82820) 2022-11-28 08:35:57 -05:00
Matthias Alphart e738df502b
Fix KNX secure config switching from manual to keyfile (#82724) 2022-11-28 10:18:45 +01:00
epenet 8a20a90324
Use SchemaOptionsFlowHandler in asuswrt (#82806) 2022-11-28 09:56:08 +01:00
Erik Montnemery 67e4f2c202
Raise repairs issue if country is not configured (#82685) 2022-11-28 09:54:13 +01:00
Shay Levy f97ac9fdcd
Add Switcher button platform (#81245) 2022-11-28 10:06:14 +02:00
Matthias Alphart cb06f8b668
KNX Config/OptionsFlow: minimize wait time for interface discovery (#81982)
* Minimize wait time for interface discovery

* fix OptionsFlow when connection failed

there is no `self.hass.data["KNX"]` when we are in retry mode after failed integration setup

* review changes

* fix new tests
2022-11-28 07:03:51 +01:00
Duco Sebel 367b5e586b
Add support for HomeWizard identify feature (#82375)
* Add support for Identify feature

* Add tests for button

* Use only identifiers for device_info

* Update homeassistant/components/homewizard/button.py
2022-11-27 20:48:35 -05:00
Matthias Alphart 4517af509c
Add support for KNX IP-Secure routing (#82765)
* always use instance variable for new entry data

- change `self._tunneling_config` to non-optional `self.new_entry_data`
- always use self.new_entry_data in `finish_flow()`

* support secure routing

* amend current tests

* use sync latency tolerance

* test secure routing config flow

* diagnostics redact backbone_key

* test xknx library setup

* check length of backbone_key

* better readable key validation
2022-11-27 23:33:12 +01:00
J. Nick Koston d6e287f47a
Add manufacturer and model to bluetooth adapter device (#82769)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-11-27 15:44:44 -05:00
Álvaro Fernández Rojas 873b903cf0
Add QNAP QSW binary sensors for each port (#76522)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-11-27 15:34:14 -05:00
Robert Svensson 3853182ccf
Add deconz_relative_rotary event for Hue Tap Dial (#82727) 2022-11-27 15:01:58 -05:00
J. Nick Koston f0ae1cc6ce
Add bluetooth diagnostics to esphome (#82761) 2022-11-27 14:59:37 -05:00
uvjustin 31ad208500
Use async with to fetch HTTP streams in tests (#82788) 2022-11-27 14:35:03 -05:00
Duco Sebel 27bd1520e8
Add support for HomeWizard enable/disable cloud feature (#82573) 2022-11-27 14:26:15 -05:00
J. Nick Koston 05f89efd2c
Fix homekit controller triggers not attaching when integration is setup after startup (#82717)
fixes https://github.com/home-assistant/core/issues/78852
2022-11-26 09:19:06 -10:00
G Johansson 987cf8b9d0
Fix pushbullet test that break CI (#82744)
pushbullet break ci
2022-11-26 13:01:22 -05:00
Erik Montnemery 2fe8e95309
Add helper to calculate statistic period start and end (#82493)
* Add helper to calculate statistic period start and end

* Don't parse values in resolve_period

* Add specific test for resolve_period

* Improve typing

* Move to recorder/util.py

* Extract period schema
2022-11-26 13:00:40 -05:00
jan iversen 8ed4ce64c3
Solve modbus binary slave problem (#82338)
* Solve modbus binary slave problem.
2022-11-26 11:11:50 +01:00
Robert Svensson e1a0f8314e
Fix deCONZ Air Quality PPB device class and unit of measurement (#82726)
Fix Air Quality PPB device class and unit of measurement
2022-11-26 10:56:09 +01:00
Matthias Alphart daf56e92a0
Update xknx to 2.0.0 (#82709) 2022-11-26 06:49:11 +01:00
mbo18 6f1208b07f
Add more sensors to SensorEntityDescription for RFLink (#82036)
* Add more sensors to SensorEntityDescription

* changes from comments

* add device_class precipitation

* fix test

* change state_class for total_rain
2022-11-26 05:40:02 +01:00
Willem-Jan van Rootselaar fb132f8a26
Add diagnostics to bsblan (#80957)
* add diagnostics to bsblan

* add device info

check firmware.

* add test for diagnostics

* Update tests/components/bsblan/test_diagnostics.py

Co-authored-by: Aarni Koskela <akx@iki.fi>

* add fixture for diagnostics test

Co-authored-by: Aarni Koskela <akx@iki.fi>
2022-11-26 03:12:07 +01:00
uvjustin 5381f9f92f
Fix owntone websocket reconnection (#82680) 2022-11-25 16:16:16 +01:00
Jan Bouwhuis 4335b0db25
Clean up or correct from removed deprecation for MQTT platform (#82684)
Clean up or correct from removed deprecation
2022-11-25 16:11:22 +01:00
Franck Nijhof 13458dc722
Centralize exception handling in Plugwise (#82694) 2022-11-25 15:56:58 +01:00
Klaas Schoute be13f3fbcf
Add API key validation for Forecast.Solar (#80856)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-11-25 15:05:01 +01:00
Kevin Stillhammer 5257875ac6
Use SensorDeviceClass.DISTANCE for here_travel_time (#79159)
* Use SensorDeviceClass.DISTANCE in here_travel_time

* Removed unused import

* Use explicit units and conversion
2022-11-25 12:30:33 +01:00
Bouwe Westerdijk ea1868b7b9
Bump plugwise to v0.25.12 (#82146)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
fixes undefined
2022-11-25 10:55:51 +01:00
Jan Bouwhuis 01b0f4d565
Announce a deprecated callback for MQTT subscribe will stop working (#82610)
* Announce a deprecated callback will stop working

* Use 2 months grace period

* Use 2 months grace period

* Use 2 months grace period

* Add deprecation comment to tests
2022-11-25 10:22:12 +01:00
Erik Montnemery e1338adf1a
Allow configuring country and language in core config (#81734)
* Allow configuring country and language in core config

* Add script for updating list of countries

* Use black for formatting

* Fix quoting

* Move country codes to a separate file

* Address review comments

* Add generated/countries.py

* Get default language from owner account

* Remove unused variable

* Add script to generate list of supported languages

* Add tests

* Fix stale docsring

* Use format_python_namespace

* Correct async_user_store

* Improve typing

* Fix with_store decorator

* Initialize language in core store migration

* Fix startup

* Tweak

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Update storage.py

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-24 23:25:50 +01:00
J. Nick Koston 09c3df7eb2
Fix iBeacons with infrequent random mac address changes unexpectedly going unavailable (#82668)
fixes https://github.com/home-assistant/core/issues/79781
2022-11-24 23:20:19 +01:00
uvjustin fcfc0e64d5
Fix mime type in forked_daapd test (#82660) 2022-11-24 22:41:26 +01:00
Erik Montnemery b94e1e9ef8
Fire events when long term statistics is updated (#82492)
* Fire events when long term statistics is updated

* Allow the new events to be subscribed to by anyone

* Address review comments

* Finish renaming events

* Finish renaming events

* Fix do_adhoc_statistics

* Adjust tests

* Adjust tests
2022-11-24 22:01:36 +01:00
Robert Hillis c30ce12c49
Remove deprecated Radarr YAML config (#81210) 2022-11-24 21:14:26 +01:00
G Johansson a63581b5c8
Add unique id for Scrape config entry entities (#82508)
* scrape unique id

* fix uuid str

* add back UoM
2022-11-24 21:12:47 +01:00
Shay Levy 815dfe9134
Fix Shelly gen2 channel name (#82655)
* Fix Shelly gen2 channel name

* Review comment
2022-11-24 21:38:32 +02:00
G Johansson 635d8c01fb
Add sum to min_max helper (#82651)
sum to min_max
2022-11-24 20:21:09 +01:00
epenet 6e2803a6d8
Use SchemaOptionsFlowHandler in Accuweather (#82627)
Use SchemaOptionsFlowHandler in accuweather
2022-11-24 20:08:14 +01:00
Raman Gupta 003e4224c8
Add `text` platform (#79454)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-24 20:01:01 +01:00
Maciej Bieniek 34633b0ede
Bump nextdns library to 1.2.0 (#82643) 2022-11-24 19:24:47 +01:00
Shay Levy 1e68e8c4b4
Add Shelly tests coverage (#82642)
* Add Shelly tests coverage

* Review comments

* Remove leftovers
2022-11-24 20:07:19 +02:00
Franck Nijhof 285aff154d
Remove Google Chat/Hangouts integration (#82645) 2022-11-24 18:33:13 +01:00
Joakim Sørensen d0390860fb
Add repair abort flow to demo integration (#82614) 2022-11-24 14:54:41 +01:00
Joakim Sørensen 621068211f
Do not delete issue when aborting repairs fix flow (#82593)
* Do not delete issue when aborting repairs fix flow

* lint

* types
2022-11-24 08:21:54 +01:00
mkmer ae07e2a9a8
Add reauth config flow to Whirlpool (#82532)
* Add ReauthFlow

* Update homeassistant/components/whirlpool/config_flow.py

Darn it - thought I caught all of these.

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>

* Update homeassistant/components/whirlpool/config_flow.py

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>

* Update homeassistant/components/whirlpool/config_flow.py

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>

* Update homeassistant/components/whirlpool/config_flow.py

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>

* Update homeassistant/components/whirlpool/config_flow.py

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>

* Update homeassistant/components/whirlpool/config_flow.py

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
2022-11-23 19:40:33 -08:00
Maciej Bieniek 845bcf3f7d
Translate `PowerOff` state of `select` entity in Harmony integration (#77491)
* Add custom device_class for select entity

* Update tests

* Make the state PowerOff translatable

* Update strings.select.json file

* add select.en.json

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-11-24 00:08:43 +01:00
Joakim Plate 8bd4125390
Test corrections noticed during pytest upgrade (#82579)
* Withing trigger a call to coordinator after init

* Stop discovery task on STOP event

* Stop dsmr connection task on STOP

* Use autospec in modem_serial tests

close on AioSerial is non async, and should not be mocked as a coroutine

* Make sure responder is specced correctly

tests/components/emulated_hue/test_init.py::test_setup_works
  /Users/joakim/src/hass/home-assistant/homeassistant/components/emulated_hue/__init__.py:119: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
    protocol.close()

* Don't assume Pymodbus is the only thing logging

* Use gather instead of wait

```
homeassistant/components/homeassistant/__init__.py:208: DeprecationWarning: The explicit passing of coroutine objects to asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in Python 3.11.
```

* Increase wait time for automation tests

Assuming exit within 1 seconds is unreasonable on a potentially loaded
test machine.

* Avoid changing app state after startup
2022-11-23 20:53:28 +01:00
Joakim Plate 25c7754edb
Upgrade arcam_fmj to entity naming (#82586) 2022-11-23 20:36:17 +01:00
Álvaro Fernández Rojas f1ffb25d99
Add Airzone DHCP discovery support (#82339) 2022-11-23 12:32:23 -07:00
epenet f91e250e90
Fix TemplateError definition (#82570) 2022-11-23 20:30:32 +01:00
G Johansson 8704f1aa47
Fully type min_max (#79496) 2022-11-23 19:54:12 +01:00
Duco Sebel a969f69fd5
Add support for controlling HomeWizard Energy Socket status light level (#82378)
* Add control option for Energy Socket status LED

* Add tests for number

* Fix failing tests in switch

* Fix comments

* Adjust name

* Simplify device_info
2022-11-23 11:47:32 -05:00
Jan Bouwhuis 4f3919cb95
Move mqtt device_tracker files (#82581)
Move mqtt device_tracker files to single file
2022-11-23 16:24:56 +01:00
Joakim Plate a55fb445b0
Bump to Arcam 1.0.1 and make strictly typed (#82487)
* Make arcam_fmj strictly typed

* Add test for invalid UDN
2022-11-23 16:23:25 +01:00
Jan Bouwhuis 32d68f375b
Add Mqtt WebSockets support (#82078)
* Add Mqtt WebSockets support

* Fix tests

* Add testing websockets options

* Add tests transport settings

* Do not use templates for ws_headers

* Use json helper - small corrections
2022-11-23 15:03:31 +01:00
Joakim Sørensen 3738135e0b
Add helper to access RepairsFlowManager (#82567)
async_external_step
2022-11-23 12:00:38 +01:00
Hessel c68149c75b
Fix Wallbox price unit (#82420)
* Change Symbol to Currency code in test

* change unit to currency/kWh

* f string
2022-11-23 11:25:21 +01:00
Shay Levy 4a089b5c28
Add tests coverage for Shelly climate platform (#82529) 2022-11-22 09:04:55 -06:00
Jan Bouwhuis 9c1e8486c5
Add unique id option for `mqtt_room` sensors (#82521)
Add unique_id setting for mqtt_room
2022-11-22 15:56:31 +01:00
Jevgeni Kiski 157222126e
Add Vallox temperature control entities (#75858)
Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>
Co-authored-by: Andre Richter <andre-richter@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-11-22 12:46:57 +01:00
epenet 9d192643ee
Move PluggableAction to trigger helpers (#81900)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-11-22 11:35:18 +01:00
Erik Montnemery be7e76f302
Migrate ZHA when enabling multi-PAN support on HA Yellow (#82213)
* Migrate ZHA when enabling multi-PAN support on HA Yellow

* Refactor BaseZhaFlow.async_step_maybe_confirm_ezsp_restore

* Change data passed to ZHA to initiate migration

* Catch errors during ZHA migration

* Fix ZhaMigrationHelper.async_prepare_yellow_migration return value

* Improve test coverage

* Improve test coverage

* Fix spelling

* Rename some none HA yellow specifics

* Rename again

* Increase number of migration retries + refactor

* Suppress OperationNotAllowed when reloading

* Adjust tests
2022-11-22 11:17:23 +01:00
jan iversen 15176300e2
Add full test of wrap option (#82308)
fixes undefined
2022-11-22 09:57:04 +01:00
Guido Schmitz 1e64d830ac
Migrate devolo Home Control to new entity naming (#74969) 2022-11-22 09:54:05 +01:00
Aarni Koskela e4c73259f7
Configure autoflake for pre-commit (#82414) 2022-11-22 08:10:36 +01:00
J. Nick Koston 7df711f1f3
Show HomeKit Controller unhandled pairing error reason in the UI (#82505) 2022-11-21 21:24:35 -05:00
J. Nick Koston a7caa038be
Accept advertisements from alternate scanners when a scanner stops scanning (#82448) 2022-11-21 21:23:07 -05:00
puddly dfed57ed4d
Bump ZHA dependencies (#82509)
* Bump ZHA dependencies

* Use the corrected `TypeValue` keyword argument name in unit tests
2022-11-21 19:39:34 -05:00
G Johansson b3dd59f202
Add config flow to Scrape (#81193)
* Scrape take 2

* cleanup

* new entity name

* Fix name, add tests

* Use FlowResultType

* Add test abort

* hassfest

* Remove not needed test

* clean

* Remove config entry and implement datacoordinator

* fix codeowners

* fix codeowners

* codeowners reset

* Fix coordinator

* Remove test config_flow

* Fix tests

* hassfest

* reset config flow

* reset strings

* reset sensor

* Reconfig

* Fix tests

* coverage

* Remove coverage

* Remove print

* Add config flow

* Fix config flow

* Add back init

* Add entry to sensor

* float to int

* Fix SelectSelector

* Add tests for config entry to existing

* Test config flow

* Fix test reload

* Fix rebase

* Fix strings

* clean init

* Clean test_sensor

* Align sensor setup entry

* Add error to strings

* review changes

* clean tests

* Add back options flow

* review changes

* update_listener

* Add tests

* Remove duplicate abort

* strings

* sensors to sensor

* review changes

* more review changes

* clarify test payload

* fixture name
2022-11-21 21:39:39 +01:00
Shay Levy 91a44b697b
Add tests coverage for Shelly number platform (#82480) 2022-11-21 10:55:06 -06:00
epenet 13c03d022b
Fix suggested values in openuv config flow (#82479)
* Fix suggested values in openuv config flow

* Don't use new helper
2022-11-21 17:12:28 +01:00
Shay Levy 32f3eb722e
Add tests coverage for Shelly entity (#82432)
* Add tests coverage for Shelly entity

* Make it generator expression
2022-11-20 23:59:25 +02:00
J. Nick Koston 3f5649092e
Break out bluetooth apis into api.py (#82416)
* Break out bluetooth apis into api.py

Like #82291 this is not a functional change.

* cleanups
2022-11-20 12:33:03 -05:00
J. Nick Koston a1d9d7116c
Prevent powerwall from switching addresses if its online (#82410)
* Prevent powerwall from switching addresses if its online

If the wifi interface was discovered we would switch the
ip address in the entry to the wifi ip even if it was
connected via ethernet

* cover

* more cover
2022-11-20 10:38:30 -05:00
Jan Bouwhuis 5c00b8b823
Wait for MQTT entry on snips integration startup (#81733)
Wait for MQTT integration to load
2022-11-20 16:17:45 +01:00
J. Nick Koston 7801cd96de
Split bluetooth models into base_scanner and wrappers (#82291) 2022-11-20 08:44:28 -06:00
Aarni Koskela 38b84620bd
Add support for Sensirion BLE sensors (#82382) 2022-11-19 14:26:54 -06:00
Shay Levy 8bd7f59b93
Add tests for Shelly sensor platform (#82385) 2022-11-19 22:01:30 +02:00
Shay Levy ea98f0e9e8
Add tests for Shelly binary_sensor platform (#82367)
* Add tests for Shelly binary_sensor platform

* Rename create to register for
2022-11-19 18:07:02 +02:00
Ernst Klamer 672acf30a4
Bump bthome-ble to 2.3.1 (#82342)
* Bump bthome-ble

* Bump bthome-ble
2022-11-19 13:48:33 +01:00
Ayk Borstelmann 3b783a85c3
AVM Fritz!Box SmartHome: Integrate Templates (#81885) 2022-11-18 17:37:56 +01:00
Hessel f7badfe441
Add wallbox Energy Price (#82039)
fixes undefined
2022-11-18 17:36:38 +01:00
G Johansson c5c23cbc95
Add unique id to Times of Day (#81196) 2022-11-18 16:53:32 +01:00
G Johansson 2ca61eef79
Code quality tests Wake on Lan (#82048) 2022-11-18 16:27:20 +01:00
J. Nick Koston 1c6b4967cf
Fix litejet tests (#82324)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-11-18 08:19:38 -06:00
J. Nick Koston 077bd594eb
Fix modbus test assuming repeat listeners always fire at 0 microseconds (#82320) 2022-11-18 14:23:42 +01:00
Jevgeni Kiski 5453b346dd
Add Vallox bypass locking switch entity (#75857)
* Switch entity

* adding missing function for tests

* Apply suggestions from code review

Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>

* Review

* fix

* Update homeassistant/components/vallox/switch.py

Co-authored-by: Andre Richter <andre-richter@users.noreply.github.com>

* Apply suggestions from code review

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

* Adding a separate parameter for the expected state

Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>
Co-authored-by: Andre Richter <andre-richter@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-11-18 10:16:54 +01:00
Jan Bouwhuis 7c2e7863d2
Remove legacy YAML support from MQTT (#82102) 2022-11-17 22:55:31 +01:00
Erik Montnemery 1a274adc28
Add config_entries.async_wait_component (#76980)
Co-authored-by: thecode <levyshay1@gmail.com>
2022-11-17 21:52:57 +01:00
Jan Bouwhuis b717da879f
Add support for Mqtt protocol version 5 (#82260) 2022-11-17 21:12:27 +01:00
J. Nick Koston 47c66dbed4
Offload platform specific bluetooth code to bluetooth-adapters (#82196)
* Offload platform specific bluetooth code to bluetooth-adapters

* adjust

* fix some more patch targets

* more test fixes

* almost there

* may not be setup yet

* more fixes

* fixes

* fix test

* fix merge
2022-11-17 14:34:19 -05:00
Álvaro Fernández Rojas 3dba9c4695
Add QNAP QSW accumulated port sensors (#76514)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-11-17 12:41:33 -06:00
J. Nick Koston 8da969b767
Disable BLE options flow for sleepy shelly devices (#82283) 2022-11-17 20:39:51 +02:00
J. Nick Koston 8792d664e7
Add websocket endpoints to control integration logging (#65158)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik <erik@montnemery.com>
2022-11-17 08:57:43 -06:00
Erik Montnemery b6586d5c34
Align number and sensor device classes (#81909)
* Align number and sensor device classes

* Add tests

* Tweak tests
2022-11-17 14:00:28 +01:00
Thomas Dietrich ad8b882cb6
Switch statistics config to require either/both 'max_age' and 'sampling_size' (#80999)
* Remove default characteristic

* Remove default sampling_size

* Fix typo

* Fix typo
2022-11-17 10:31:06 +01:00
Jan Bouwhuis f60850586e
Remove `b64` encoding work-a-round for MQTT camera (#82244) 2022-11-17 10:11:25 +01:00
epenet 6424c71daa
Cleanup supported_features in demo (#82239)
* Cleanup supported_features in demo cover

* Improve other platforms

* Adjust media_player patch
2022-11-17 09:39:46 +01:00
Erik Montnemery a6ff8c5fb3
Fix Home Assistant Yellow tests (#82212) 2022-11-16 13:01:53 -06:00
Erik Montnemery aaec464627
Add support for managing the silabs multiprotocol add-on (#82170)
* Add support for managing the silabs multiprotocol add-on

* Fix passing context when starting option flow

* Allow unloading a ha yellow config entry

* Fix tests

* Log data passed to ZHA option flow

* Improve ZHA migration logic

* Move tests

* Improve test coverage

* Remove dead code

* Drop automatic ZHA migration
2022-11-16 17:38:07 +01:00
Erik Montnemery 607a0e7697
Reduce size of get_statistics_during_period WS API response (#82131) 2022-11-16 17:36:30 +01:00
Erik Montnemery bb64b39d0e
Minor refactor of zha config flow (#82200)
* Minor refactor of zha config flow

* Move ZhaRadioManager to a separate module
2022-11-16 17:13:23 +01:00
J. Nick Koston 03e6132d98
Fix static version in homekit tests (#82201) 2022-11-16 09:37:00 -06:00
rappenze f87ef742e8
Use parameterized test for better code readability (#82194)
* Use parameterized test for better code readability

* Use parameterized test for better code readability

* Update tests/components/fibaro/test_config_flow.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-11-16 15:27:20 +01:00
Yukon Vinecki 9098592257
Fix Z-Wave JS cover stop support (#78723)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-16 13:14:14 +01:00
Erik Montnemery 1582d88957
Remove deprecated history WS API (#82136) 2022-11-16 12:54:03 +01:00
Robert Svensson af6338343e
Remove (2021) backwards supporting functionality from UniFi (#81981) 2022-11-16 12:49:10 +01:00