Commit graph

1341 commits

Author SHA1 Message Date
Erik Montnemery
a0e558c457
Add generic classes BaseFlowHandler and BaseFlowManager ()
* Add generic classes BaseFlowHandler and BaseFlowManager

* Migrate zwave_js

* Update tests

* Update tests

* Address review comments
2024-02-29 16:52:39 +01:00
Paulus Schoutsen
4eb0f86a65
Remove 'values' from services validation ()
* Remove 'values' from services validation

* Remove extra blank line
2024-02-29 02:53:03 +01:00
Erik Montnemery
b336095239
Allow translating device names ()
* Allow translating device names

* Don't keep a reference to translations in config entry

* Update kitchen_sink tests

* Add tests
2024-02-28 15:59:59 +01:00
J. Nick Koston
49eb664a05
Update httpx to 0.27.0 and httpcore to 1.0.4 () 2024-02-27 13:15:33 -10:00
J. Nick Koston
4ea1c5cc3c
Add support for importing integrations in the executor ()
* Add support for pre-imports at setup time

alternative solution to 

* refactor

* refactor

* refactor

* mark >1.0s integrations

* no point in executor if already loaded

* no point in executor if already loaded

* cleanup

* cleanup

* two more

* one more

* analytics loads a lot more integrations

* cloud

* debug

* psutil, hardwre

* try zha

* Update homeassistant/setup.py

* await

* comments

* coverage

* coverage

* coverage

* move logic to loader

* move logic to loader

* preserve comments
2024-02-26 14:49:43 -05:00
Erik Montnemery
730fe760cf
Remove JuiceNet integration ()
* Remove JuiceNet integration

* Adjust issue

* Add test

* Fix stale DOMAIN constant
2024-02-26 21:08:36 +02:00
Jan-Philipp Benecke
baf84b6fba
Add single_config_entry manifest option ()
* Allow setting if we support multiple config entries in config flow

* Move property to config flow instead of flow handler

* Move marking an integration as single instance only to manifest

* Revert line remove

* Avoid init a config flow or adding a new entry on a single instance with an entry

* Revert changes in test

* Process code review comments

* Apply code review suggestion
2024-02-26 19:00:33 +01:00
Maciej Bieniek
ee57c924f2
Bump pysnmp-lextudio library to version 6.0.2 ()
* Bump pysnmp-lextudio to version 6.0.2

* Update gen_requirements_all.py

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-24 11:30:00 +01:00
Steven Barth
5d0d3a5c2b
Remove matplotlib pinning due to Python 3.12 incompatibility () 2024-02-16 12:33:57 +01:00
puddly
6295f91a1f
Pin chacha20poly1305-reuseable>=0.12.1 ()
* Pin `chacha20poly1305-reuseable`
Prevents a runtime `assert isinstance(cipher, AESGCM)` error

* Update `gen_requirements_all.py` as well
2024-02-06 16:55:51 +01:00
Marc Mueller
545b888034
Update ruff to 0.2.1 ()
* Update ruff to 0.2.1

* Rename config sections

* Update remapped error codes

* Add ignores
2024-02-06 15:41:34 +01:00
Michael Hansen
5b1e0b2602
Set default for OSTYPE in run-in-env script () 2024-02-05 20:23:52 +01:00
Joost Lekkerkerker
2c0b897658
Allow the helper integrations to omit icon translation field () 2024-02-04 22:57:11 +01:00
Paul Bottein
4170a447fc
Allow system and helper integrations to provide entity_component icons () 2024-01-29 19:26:55 +01:00
J. Nick Koston
601988ecf2
Bump cryptography to 42.0.1 and pyOpenSSL to 24.0.0 ()
* Bump cryptography to 42.0.1

changes: https://github.com/pyca/cryptography/compare/41.0.7...42.0.1

Note that more of the non-rust backend code has been removed
I had to handle that in
https://github.com/bdraco/chacha20poly1305-reuseable/releases/tag/v0.12.1

So there may be other downstream consumers that have a problem

* need pyOpenSSL as well

* too early before coffee
2024-01-27 21:30:00 +01:00
Franck Nijhof
fa485513d5
Ensure icon translations aren't the same as the default () 2024-01-21 12:02:15 +01:00
Franck Nijhof
2b90d968b4
Fix hassfest icon schema for service only () 2024-01-20 14:39:05 -05:00
Franck Nijhof
6cf8a3e5d1
Pin pandas to 2.1.4 () 2024-01-20 18:08:35 +01:00
Franck Nijhof
01372024f5
Add icon translations support ()
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2024-01-19 16:56:56 +01:00
Robert Resch
edd7feaf10
Add task to install all requirements of an integration ()
* Add task to install the requirements of an integration

* Gather recursive requirements

* Move valid_integration to util

* Apply suggestions from code review

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>

* Implement suggestions

---------

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-01-18 22:11:02 +01:00
J. Nick Koston
d8564eba17
Bump lxml to 5.1.0 ()
* Bump lxml to 5.0.0

cython 3.0.7+ is required ?

* bump

* Apply suggestions from code review

* 5.1.0
2024-01-13 21:08:42 -05:00
J. Nick Koston
298e2e2b99
Attempt to fix 32bit docker builds () 2024-01-05 08:23:04 +01:00
steffenrapp
608d52f167
Add translatable title to holiday () 2024-01-02 23:40:38 +01:00
Sid
729a0fbcd5
Move urllib3 constraint to pyproject.toml () 2024-01-02 13:34:19 +01:00
Luke Lashley
cc18b9a2d8
Constrain dacite to at least 1.7.0 () 2024-01-01 18:00:17 -10:00
J. Nick Koston
a49999e984
Pin lxml to 4.9.4 () 2023-12-30 11:29:19 +01:00
Denis Shulyaka
9ba53e03ee
Bump httpx to 0.26.0 and httpcore to 1.0.2 () 2023-12-21 10:11:00 -10:00
J. Nick Koston
f4ee2a1ab4
Bump anyio to 4.1.0 () 2023-12-12 08:24:24 +01:00
Tudor Sandu
636e38f4b3
Trigger Home Assistant shutdown automations right before the stop event instead of during it ()
Co-authored-by: Erik <erik@montnemery.com>
2023-12-05 11:24:41 -10:00
Erik Montnemery
5b55c7da5f
Remove logic converting empty or falsy YAML to empty dict ()
* Correct logic converting empty YAML to empty dict

* Modify according to github comments

* Add load_yaml_dict helper

* Update check_config script

* Update tests
2023-12-05 18:08:11 +01:00
Joost Lekkerkerker
a8ca73a7dd
Finish scaffold config flow with either abort or create entry () 2023-12-05 17:13:29 +01:00
Joost Lekkerkerker
374b1cfd0c
Fix bug in config flow scaffold () 2023-12-04 07:48:05 +01:00
Joost Lekkerkerker
b56cd169ac
Use constants in config flow scaffold () 2023-12-04 07:46:36 +01:00
Erik Montnemery
61d82ae9ab
Tweak dockerfile generation () 2023-11-29 15:20:21 +01:00
Erik Montnemery
999875d0e4
Autogenerate Dockerfile () 2023-11-29 11:26:50 +01:00
Teemu R
28a3d36bc1
Remove eq3btsmart integration () 2023-11-28 09:11:32 +01:00
Ville Skyttä
fd5cda4ec6
Issue bytes vs str related warnings from tests () 2023-11-27 21:59:54 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Robert Resch
cf9b0e804f
Deprecate legacy api auth provider ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:16:18 +01:00
J. Nick Koston
d90605f9bc
Bump protobuf to 4.25.1 ()
changelog: https://github.com/protocolbuffers/protobuf/releases/tag/v25.1
2023-11-20 12:34:58 +01:00
Ruslan Sayfutdinov
1610dd94f9
Add 'do not edit' comment to generated files () 2023-11-13 18:33:42 +00:00
Jan Bouwhuis
f94167a4bb
Fix invalid oauth2_unauthorized translation ref ()
* Fix invalids oauth2_unauthorized translation ref

* Fix oauth2_failed
2023-11-12 21:13:38 +01:00
Allen Porter
787fb3b954
Improve OAuth error handling in configuration flows ()
* Improve OAuth error handling in configuration flows

* Update strings for all integrations that use oauth2 config flow

* Remove invalid_auth strings

* Revert change to release

* Revert close change in aiohttp mock
2023-11-11 11:02:51 +01:00
Jan Bouwhuis
54cf7010cd
Add ServiceValidationError and translation support ()
* Add ServiceValidationError

* Add translation support

* Extend translation support to HomeAssistantError

* Add translation support for ServiceNotFound exc

* Frontend translation & translation_key from caller

* Improve fallback message

* Set websocket_api as default translation_domain

* Add MQTT ServiceValidationError exception

* Follow up comments

* Revert removing gueard on translation_key

* Revert test changes to fix CI test

* Follow up comments

* Fix CI test

* Follow up

* Improve language

* Follow up comment
2023-11-06 15:45:04 +01:00
J. Nick Koston
b9b986dc8d
Bump protobuf to 4.25.0 () 2023-11-04 10:54:34 -05:00
Matthias Alphart
5cd27a877e
Use setdefault() in scaffold script for setting hass.data () 2023-11-04 10:51:34 +01:00
Joost Lekkerkerker
c3da075554
Use present wording in version bump script () 2023-10-27 17:50:33 +02:00
Allen Porter
476e867fe8
Add a Local To-do component ()
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-10-25 13:21:10 +02:00
Erik Montnemery
b953f2998c
Rename the safe_mode integration to recovery_mode ()
* Rename safe mode integration to recovery mode

* Update code
2023-10-24 09:11:14 +02:00
Erik Montnemery
d5af6c595d
Fix runaway regex in translations.develop ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-10-23 12:34:32 +02:00