91438 Commits

Author SHA1 Message Date
Jan Bouwhuis
663860e9c2
Improve description in Intergas entry setup form (#138225)
Improve description in  Intergas entrry setup form
2025-02-10 19:47:41 +01:00
Nathan Spencer
5c0ea9e845
Convert coinbase account amounts as floats to properly add them together (#137588)
Convert coinbase account amounts as floats to properly add
2025-02-10 18:11:40 +02:00
Erik Montnemery
e1817d466e
Keep one backup per backup agent when executing retention policy (#138189)
* Keep one backup per backup agent when executing retention policy

* Add tests

* Use defaultdict instead of dict.setdefault

* Update hassio tests
2025-02-10 18:09:57 +02:00
Jan-Philipp Benecke
53d011f345
Improve inexogy logging when failed to update (#138210) 2025-02-10 17:59:18 +02:00
Erik Montnemery
4b34d1bbb5
Merge config subentry feature branch to dev (#136121)
* Reapply "Add support for subentries to config entries" (#133470) (#136061)

* Reapply "Add support for subentries to config entries" (#133470)

This reverts commit ecb3bf79f32a2e25d141ff467e5958826ed9fc3a.

* Update test snapshot

* Add config subentry support to device registry (#128157)

* Add config subentry support to device registry

* Apply suggestions from code review

* Update syrupy serializer

* Update snapshots

* Address review comments

* Allow a device to be connected to no or a single subentry of a config entry

* Update snapshots

* Revert "Allow a device to be connected to no or a single subentry of a config entry"

This reverts commit ec6f613151cb4a806b7961033c004b71b76510c2.

* Update test snapshots

* Bump release version in comments

* Rename config_subentries to config_entries_subentries

* Add config subentry support to entity registry (#128155)

* Add config subentry support to entity registry

* Update syrupy serializer

* Update snapshots

* Update snapshots

* Accept suggested changes

* Clean registries when removing subentry (#136671)

* Clean up registries when removing subentry

* Update tests

* Clean up subentries from deleted devices when removing config entry (#136669)

* Clean up subentries from deleted devices when removing config entry

* Move

* Add config subentry support to entity platform (#128161)

* Add config subentry support to entity platform

* Rename subentry_id to config_subentry_id

* Store subentry type in subentry (#136687)

* Add reconfigure support to config subentries (#133353)

* Add reconfigure support to config subentries

* Update test

* Minor adjustment

* Rename supported_subentry_flows to supported_subentry_types

* Address review comments

* Add subentry support to kitchen sink (#136755)

* Add subentry support to kitchen sink

* Add subentry reconfigure support to kitchen_sink

* Update kitchen_sink tests with subentry type stored in config entry

* Update kitchen_sink

* Update kitchen_sink

* Adjust kitchen sink tests

* Fix hassfest

* Apply suggestions from code review

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

* Improve docstrings and strings.json

---------

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

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2025-02-10 16:40:07 +01:00
Nathan Spencer
854af1449b
Bump pybalboa to 1.1.2 (#138139)
* Bump pybalboa to 1.1.1

* Bump pybalboa to 1.1.2
2025-02-10 13:50:35 +01:00
epenet
9e04f618b8
Adjust 'Install all test requirements' task to include base requirements (#137642) 2025-02-10 12:11:33 +00:00
Marc Mueller
e1d3549ce3
Improve blueprint importer typing (#138194) 2025-02-10 12:53:44 +01:00
Josef Zweck
b89f9a5961
Bump onedrive-personal-sdk to 0.0.10 (#138186) 2025-02-10 13:41:28 +02:00
kiran Bhakre
de86e4bd3c
Add authorities to london_air (#137349)
* Update sensor.py

added Hounslow and hammersmith

* Update sensor.py

maintain the alphabetical order

* Update homeassistant/components/london_air/sensor.py

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

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2025-02-10 11:39:48 +01:00
Daniel O'Connor
38b8df8f6f
Prevent crash if telegram message failed and did not generate an ID (#137989)
Fix #137901 - Regression introduced in 6fdccda2256f92c824a98712ef102b4a77140126
2025-02-10 11:47:02 +02:00
pglab-electronics
8c602d74f3
Add pglab integration (#109725)
* Add PG LAB Electronics integration

* Add time from last boot sensor diagnostic

* Limit the initial new pglab integration to only one platform

* Update FlowHandler with the new return type ConfigFlowResult

* Fix docstring file with the right integration name to PG LAB.

* There is no need for default value in the callback definition.

* Move all mqtt callbacks to be global and also renamed with a better name.

* Removed unused member variables.

* Renaming functions with a better name.

* Adding miss docstring to __build_device.

* Renamed CreateDiscovery with a better name.

* Removing not so meaning comment.

* Avoid to populate hass.data with pglab discovery information. Use hass.data[DOMAIN] instead.

* Revert "Removed unused member variables."

This reverts commit 4193c491ec3c31d5c589abac59028ee9be898785.

* Removed unused member variables.

* Refactoring of const. Be sure to have in const.py constant that are used in at least two other modules

* Restoring back the process to unregister the plaform when unload the integration.

* fix spelling mistake

* Revert "Move all mqtt callbacks to be global and also renamed with a better name."

This reverts commit d94d8010d5d11d3febfcb075859483d9e2beae3c.

* Main refactoring to avoid to store PG Lab discovery in hass.data

* Change class name  BaseEntity in PGLabEntity. And named PyPGLab...  what imported from external python module pypglab.

* Avoid to use dict to create DeviceInfo

* Removing unused parameter

* Removing not necessary call to base class

* Update entity name/id to be compatible with the new integration policy.

* Upate test to new entity id

* Add new line after file description

* avoid to store in local variable data for calling function

* Move PGLABConfigEntry in __init__.py

* change function to pure callback

* to avoid hang, dont' trust the split of the discovery topic... introduce a max split count

* rename method with a more meaning name

* use assignment operator

* rename variable with a better name

* removing unecessary test

* Raise exception in case of unexpected error during discovery

* Review comments all other the intergration.

* Rename classes to be consistent in integration

* Using new feature single_config_entry to allow single instance integration

* rename class FlowHandler to PGLabFlowHandler

* using __package__ to initialize integration logger

* missing to catch the exception when for some reason is not possible to create the discovery instance. This can happen when the discovery MQTT message is not in valid json format.

* using ATTR_ENTITY_ID instead of the string

* using SOURCE_MQTT, SOURCE_USER instead of config_entries.SOURCE_MQTT, config_entries.SOURCE_USER

* Using FlowResultType.ABORT instead of the string value

* Code refactoring for tests of configuration from USER and MQTT

* Remove to the user the possibility to add PGLab integration manually, and remove not needed tests.

* Change test_device_update to use snapshot to check test result

* Raise exeception in case of unexpected device and entity_id

* Avoid to log on info channel.

* Renamed _LOGGER in LOGGER

* Propage the call to the base class

* Remove not needed code because from the manifest it's only allows a single instance

* Using specific type for result test instead of string value

* Code refactoring, avoid not necessary function

* update to the new way to import mqtt components

* Avoid runtime check

* add err variable for catching the exception

* add doc string to mqtt_publish

* add doc string to mqtt_subscribe

* Rename DiscoverDeviceInfo.add_entity_id in add_entity

* add doc string

* removing not meaning documentation string

* fix spelling

* fix wrong case in docstring

* fix spelling mistake in PyPGLab callback name

* rename mqtt message received callback

* Avoid to store hard coded discovery_prefix

* Removing unused strings from strings.json

* Give to the user more information during config_flow, and add the possibility to add manually the integration

* Fix to avoid fails of auto test

* update discovery test

* Be sure to always subscribe to MQTT topic when entity is added to HA

* Update codeowner of PGLAB integration and test

* Add control to check if mqtt is available during integration setup

* New test for check no state change for disable entity switch

* Remore not more used file

* update pypglab to version 0.0.3 and improve the symmetry to subscribe/unsubscribe to mqtt entity topic and to register/deregister the status update callback

* Update codeowner of pglab integration

* Adding quality_scale

* removing async_setup

* Fix spelling mistake

* Added test to cover config_flow.async_step_user

---------

Co-authored-by: Pierluigi <p.garaventa@gmail.com>
2025-02-10 08:19:42 +01:00
Allen Porter
15223b3679
Update Ollama to use streaming API (#138177)
* Update ollama to use streaming APIs

* Remove unnecessary logging

* Update ollama to use streaming APIs

* Remove unnecessary logging

* Update homeassistant/components/ollama/conversation.py

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

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2025-02-09 21:05:41 -08:00
Allen Porter
ae38f89728
Update anthropic to use the new chatlog API (#138178)
* Update anthropic to use the new chatlog API

* Remove conversation id logging

* Add back whitespace

* Reduce unnecessary diffs

* Revert diffs to conversation component

* Replace types with union type
2025-02-09 20:42:15 -08:00
Paulus Schoutsen
29c6a2ec13
Add pipeline intent-progress events based on deltas (#138095)
Add intent progress Assist event
2025-02-09 18:09:52 -08:00
Paulus Schoutsen
fa3acde684
Make MockChatLog reusable for other integrations (#138112)
* Make MockChatLog reusable for other integrations

* Update tests/components/conversation/__init__.py
2025-02-09 20:19:28 -05:00
Paulus Schoutsen
cabb406270
Fix user input not added to chat log from contextvar (#138173) 2025-02-09 16:34:25 -08:00
Abílio Costa
c2bb376c43
Handle generic agent exceptions when getting and deleting backups (#138145)
* Handle generic agent exceptions when getting backups

* Update hassio test

* Update delete_backup
2025-02-10 01:31:55 +01:00
Norbert Rittel
2f12187498
Replace duplicate keys with reference, improve field description (#138123)
- replace two fan_speed.name fields with references (analog to the fan_speed.description fields)
- make the description field a little more informative (it presents a slider from 0 to 100 %)
2025-02-10 00:04:00 +01:00
Andrew Jackson
31d2d968c4
Add optional media description to Mastodon post action (#137224)
Add optional media description
2025-02-10 00:01:53 +01:00
Christopher Fenner
c8b4e62710
Add battery level sensor for ViCare zigbee devices (#137813)
* add battery level sensor

* add uom

* adapt test case
2025-02-09 23:50:03 +01:00
William Scanlon
dafc331e85
Bump pyeconet to 0.1.27 (#136400) 2025-02-09 23:45:33 +01:00
J. Nick Koston
0017192ca4
Bump google-cloud-pubsub to 2.28.0 (#137742)
changelog: https://github.com/googleapis/python-pubsub/compare/v2.23.0...v2.28.0

getting this updates so it will be a smaller bump once
protobuf 6 is supported https://github.com/home-assistant/core/pull/137736
2025-02-09 23:44:17 +01:00
Brynley McDonald
0408e732d7
Add extra tests to flick_electric (#138017)
Add extra tests to flick_electric
2025-02-09 23:40:34 +01:00
Marc Mueller
9467709068
Use generics for deprecation helpers (#138171) 2025-02-09 23:38:58 +01:00
Allen Porter
57ab567d08
Update ollama to use the ChatLog/ChatSession APIs (#138167)
* Update ollama to use the ChatLog/ChatSession APIs

* Add documentation about history trimming.

* Revert changes to chat_log.py

* Explicitly check for SystemContent when converting system messages

* Remove half of a comment
2025-02-09 16:52:01 -05:00
Regev Brody
379bf10675
Add scene support to roborock (#137203)
* feature: add scene buttons to roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock

* feature: upgrade python-roborock
2025-02-09 13:39:38 -08:00
jdelaney72
e8e4d2a83c
Add unique ID for NOAA Tides sensor (#137988) 2025-02-09 22:32:11 +01:00
Jan Bouwhuis
7678f8fddd
Revert "Clear statistics when you unload the Opower integration (#135908)" (#138163)
* Revert "Clear statistics when you unload the Opower integration (#135908)"

This reverts commit aa19207ea4a12abc592781baeff674027ece33dd.

* Fix OpowerConfigEntry imports

* Re-add entry type hint  to coordinator
2025-02-09 13:12:04 -08:00
Michael
49968904b2
Explicitly pass in the config_entry in homeassistant_alerts coordinator (#138153)
explicitly pass in the config_entry in coordinator
2025-02-09 22:44:13 +02:00
Michael
08dbd83a55
Explicitly pass in the config_entry in ipp coordinator (#138138)
explicitly pass in the config_entry in coordinator
2025-02-09 22:43:46 +02:00
Michael
427013124c
Explicitly pass in the config_entry in iron_os coordinator (#138137)
explicitly pass in the config_entry in coordinator
2025-02-09 22:42:15 +02:00
Michael
5dea4164a5
Explicitly pass in the config_entry in hydrawise coordinator (#138148)
explicitly pass in the config_entry in coordinator
2025-02-09 22:27:47 +02:00
Michael
a27dd08a7c
Explicitly pass in the config_entry in habitica coordinator (#138156)
explicitly pass in the config_entry in coordinator
2025-02-09 22:26:11 +02:00
Michael
6b24bae084
Explicitly pass in the config_entry in hunterdouglas_powerview coordinator (#138151)
explicitly pass in the config_entry in coordinator
2025-02-09 21:19:57 +01:00
Michael
39bcef63bd
Explicitly pass in the config_entry in hko coordinator (#138154)
explicitly pass in the config_entry in coordinator
2025-02-09 22:17:11 +02:00
Michael
d9a17506f5
Explicitly pass in the config_entry in here_travel_time coordinator (#138155)
explicitly pass in the config_entry in coordinator
2025-02-09 22:16:05 +02:00
Michael
7c9d30eb06
Explicitly pass in the config_entry in intellifire coordinator (#138143)
explicitly pass in the config_entry in coordinator
2025-02-09 22:14:19 +02:00
Michael
15af006fbe
Explicitly pass in the config_entry in iometer coordinator (#138142)
explicitly pass in the config_entry in coordinator
2025-02-09 22:13:54 +02:00
Michael
8c3dab199e
Explicitly pass in the config_entry in homewizard coordinator (#138152)
explicitly pass in the config_entry in coordinator
2025-02-09 22:10:21 +02:00
Michael
8c27a75d6b
Explicitly pass in the config_entry in husqvarna_automower_ble coordinator (#138150)
explicitly pass in the config_entry in coordinator
2025-02-09 22:08:49 +02:00
IceBotYT
1dbd23eae1
Remove non-existing via_device in La Crosse View (#137995) 2025-02-09 15:06:35 -05:00
Michael
ec3e888372
Explicitly pass in the config_entry in husqvarna_automower coordinator (#138149)
explicitly pass in the config_entry in coordinator
2025-02-09 22:05:42 +02:00
Michael
b65403f332
Explicitly pass in the config_entry in idasen_desk coordinator (#138146)
explicitly pass in the config_entry in coordinator
2025-02-09 22:04:46 +02:00
Michael
0decb0cfba
Explicitly pass in the config_entry in iotawatt coordinator (#138141)
explicitly pass in the config_entry in coordinator
2025-02-09 22:03:19 +02:00
Michael
e7d49823e4
Explicitly pass in the config_entry in islamic_prayer_times coordinator (#138133)
explicitly pass in the config_entry in coordinator
2025-02-09 22:01:44 +02:00
Michael
4eccc9d9a4
Explicitly pass in the config_entry in iotty coordinator (#138140)
explicitly pass in the config_entry in coordinator
2025-02-09 22:01:13 +02:00
Michael
733d9de042
Explicitly pass in the config_entry in israel_rail coordinator (#138132)
explicitly pass in the config_entry in coordinator
2025-02-09 21:58:09 +02:00
Michael
52363d5369
Explicitly pass in the config_entry in ialarm coordinator (#138147)
explicitly pass in the config_entry in coordinator
2025-02-09 21:57:24 +02:00
Michael
284a70932e
Explicitly pass in the config_entry in lacrosse_view coordinator (#138122)
explicitly pass in the config_entry in coordinator
2025-02-09 20:51:15 +01:00