Erik Montnemery
8f6c4f8b33
Add tests of homeworks binary sensor ( #113577 )
2024-03-17 09:45:49 +01:00
Sid
69564b1a17
Add ruff rule PIE800 ( #113619 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 16:31:30 -10:00
Christopher Bailey
43652a4ace
Deprecate UniFi Protect HDR switch and package sensor ( #113636 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 16:15:32 -10:00
J. Nick Koston
6a6f3d46a9
Create config entry async_on_unload tasks eagerly ( #113626 )
2024-03-16 14:43:49 -10:00
J. Nick Koston
fa68c5633c
Fix zeroconf shutting down too early ( #113638 )
2024-03-16 14:42:27 -10:00
Christopher Bailey
e703baba0a
Add new fields from UniFi Protect v3 ( #113631 )
2024-03-16 13:17:23 -10:00
Jan-Philipp Benecke
73f11064d7
Use mock_platform
for button entity component tests instead of hass.components
( #113627 )
2024-03-16 12:47:59 -10:00
Sid
fe9cc6705c
Add ruff rule PIE804 ( #113620 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 12:45:18 -10:00
Erik Montnemery
d0352ed91d
Fix missing context when running script from template entity ( #113523 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 12:37:24 -10:00
Allen Porter
a9da9ee443
Bump ical to 7.0.3 to fix local-todo persisted with invalid DTSTART values ( #113526 )
2024-03-16 12:03:26 -10:00
Jan Bouwhuis
554aefed42
Generate HomeAssistantError message from English translations ( #113305 )
...
* Fetch exception message from translation cache
* Improve tests
* Return translation key without path, cleanup
* Fetch translations when string variant is requested
* Move import
* revert changes ConfigValidationError
* mypy
* Remove _str__ method instead
* Type _message for mqtt template exception classes
* Revert changes made to test_config.py
* Undo changes TemplateError
* Follow up comments and test coverage
2024-03-16 22:56:48 +01:00
Lex Li
2bc4a5067d
snmp: Better sensor support to resolve previous issues ( #113624 )
...
Co-authored-by: Christian Kühnel <christian.kuehnel@gmail.com>
Co-authored-by: jan iversen <jancasacondor@gmail.com>
2024-03-16 22:56:21 +01:00
Sid
0b9c9aff62
Add ruff rules PIE790, PIE794, PIE807, PIE810 ( #113617 )
2024-03-16 11:04:58 -10:00
J. Nick Koston
bb12d2e865
Avoid creating tasks in homeassistant_alerts when the debouncer will not fire ( #113580 )
2024-03-16 16:20:06 -04:00
Jan Bouwhuis
5dccd8204c
Freeze time on profile test ( #113618 )
2024-03-16 21:16:18 +01:00
Sid
6ee273a548
Clean up unneeded ruff noqa directives ( #113616 )
2024-03-16 09:48:37 -10:00
Sid
ccd2e989c3
Enable ruff RUF005 and fix occurrences ( #113589 )
2024-03-16 07:37:20 -10:00
Massimo Savazzi
2a5c85a020
Add JVC Projector Sensors ( #108949 )
...
* Add JVC Projector Sensors - Power Status, Input
* Removed commented line, removed name in icons.json
* fixed icons.json file
* fixed tests
* Update homeassistant/components/jvc_projector/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Fixed as requested
* Fixed code as requested
* added fixes
* Fixed sensor creation
* fixed const
* fixed icons
* Added test for both sensors
* Added ha state stest
* fixed commented line and removed useless ones
* Changed time FAST - SLOW to be more responsive
* Rolled back to previous values 6/60
* Update sensor.py
removed off
* Update icons.json
* Removed the Input Sensor entity
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/jvc_projector/test_sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Updated unique id of sensor
Co-authored-by: Steve Easley <steve.easley@gmail.com>
* Added translation and string for Power Status
* Update homeassistant/components/jvc_projector/strings.json
Co-authored-by: Steve Easley <steve.easley@gmail.com>
* Update homeassistant/components/jvc_projector/strings.json
Co-authored-by: Steve Easley <steve.easley@gmail.com>
* Update strings.json
* Update strings.json
added missing ,
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Steve Easley <steve.easley@gmail.com>
2024-03-16 16:52:51 +01:00
Maciej Bieniek
6191b25563
Catch TimeoutError
in Brother
config flow ( #113593 )
...
* Catch TimeoutError in Brother config flow
* Update tests
* Remove unnecessary parentheses
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-03-16 16:01:48 +01:00
J. Nick Koston
ef0c17749f
Use async_create_task in recorder init tests ( #113586 )
2024-03-16 15:40:50 +01:00
Shay Levy
d17e397455
Ignore Shelly block update with cfgChanged None ( #113587 )
2024-03-16 16:18:41 +02:00
Shay Levy
a7fd1c278c
Shelly config flow test wait for tasks to finish ( #113588 )
2024-03-16 16:18:13 +02:00
Brett Adams
219cb7a788
Add additional sensors to Teslemetry ( #112555 )
...
* Add more sensors
* Fix coverage
* Dont do this rename yet
* Fix case
* Update snapshot
* Add icons
* Remove unused icons
* Update snapshot
* Remove last_value logic from TimeSensor
* Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Update constant case
* Remove useless test
* Add refresh test back
* Add assertion to post coordinator refresh
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2024-03-16 11:54:37 +01:00
Sid
470ef554d7
Fix freedompro tests for ruff B018 ( #113583 )
2024-03-16 00:03:25 -10:00
Sid
dd3101e161
Fix unifiprotect tests for ruff B018 ( #113584 )
2024-03-16 00:01:24 -10:00
Sid
27e844e3bf
Add ruff B005, B015, B032 and fix occurrences ( #113543 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-15 17:48:37 -10:00
Jan Bouwhuis
6e84dbde35
Fix lingering hassio issues test ( #113569 )
2024-03-15 15:10:24 -10:00
J. Nick Koston
af06e03b71
Add profiler set_asyncio_debug service ( #113447 )
...
* Add profiler set_asyncio_debug service
Currently when a user has a problem with there event loop being blocked
the simplest way to enable asyncio debug is to add `debugpy:` to
`configuration.yaml`, however this approach slows the system which
makes the report less useful and harder to track down the problem.
We need a lightweight way to enable debug mode so users can report
problems with the event loop being blocked, and we have a better
chance of finding the source without side effects
* logging
* logging
* logging
* comments
* fix
* icon
* only if enabled
* coverage
2024-03-15 20:49:35 -04:00
On Freund
b644c03fa7
Send keep-alive frames in image proxy stream ( #113542 )
2024-03-15 14:00:33 -10:00
J. Nick Koston
88f04bb3b4
Avoid calling entry.async_migrate in sonarr tests ( #113557 )
...
We should setup the the config entry instead of calling the
migrator directly
This fix was reverted out in #113553
2024-03-15 23:33:48 +01:00
J. Nick Koston
03bb791080
Add missing async_block_till_done to jellyfin test_invalid_auth test ( #113556 )
...
This fix was reverted out in #113553
2024-03-15 23:31:55 +01:00
G Johansson
e8de1a7031
Revert "Avoid pre-importing config_flows if the integration does not … ( #113553 )
...
Revert "Avoid pre-importing config_flows if the integration does not support …"
This reverts commit 9940f51b95
.
2024-03-15 23:15:36 +01:00
J. Nick Koston
77a94ea515
Speed up loading sun ( #113544 )
...
* Speed up loading sun
* Speed up loading sun
* Speed up loading sun
* adjust
* tweak
2024-03-15 23:01:49 +01:00
Sid
d120993477
fix homekit test asserts ( #113549 )
2024-03-15 22:02:18 +01:00
Sid
b261f124d6
fix mqtt siren test asserts ( #113550 )
2024-03-15 21:59:30 +01:00
Robert Svensson
3ba29c361a
Remove old update of group unique id in deCONZ ( #112533 )
2024-03-15 21:09:44 +02:00
Robert Svensson
9c2c7f1a45
Remove old update of number unique id in deCONZ ( #113524 )
2024-03-15 21:08:18 +02:00
Robert Svensson
e90388afd1
Remove old update of sensor unique id in deCONZ ( #113527 )
2024-03-15 21:06:09 +02:00
J. Nick Koston
b7f7bed46c
Import and create pyudev for usb in the executor ( #113478 )
2024-03-15 09:05:18 -10:00
jan iversen
02d4bf007d
Do not allow modbus config without entities ( #113516 )
2024-03-15 19:49:29 +01:00
Robert Svensson
5b5ff92a05
Support configuring Axis to use HTTPS ( #113271 )
2024-03-15 18:58:49 +01:00
Joost Lekkerkerker
be7c4295dc
Fix MyUplink tests ( #113534 )
2024-03-15 18:26:28 +01:00
Thomas55555
66aa2c038a
Freeze timezone in bmw_connected_drive tests ( #113533 )
...
Freeze timezone in bmw_connected_drive
2024-03-15 18:22:17 +01:00
dontinelli
98132d1cd3
Add Fyta integration ( #110816 )
...
* Initial commit for fyta integration
* Update __init__.py
Delete BinarySensor for first PR
* Update __init__.py
Rewind wrongful deletion of comma
* Delete homeassistant/components/fyta/binary_sensor.py
Delete binary_sensor for first pr of integration
* Update manifest.json
Updated requirement to new version of fyta_cli 0.2.1, where bug in import of modules has been resolved.
* Update requirements_test_all.txt
adjust to updated manifest
* Update requirements_all.txt
adjust to updated manifest
* Update test_config_flow.py
* Update config_flow.py
update file to correct error with _entry attribute
* Fyta integration - update initial PR based on review in initial PR #110816 (#2 )
* adjustments to pass test for config_flow
* backport of changes in intitial PR to dev
* update text_config_flow
* changes based on review in initial PR #110816
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
* Update homeassistant/components/fyta/manifest.json
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
* Adjustments based on PR-commet of Feb 19 (#3 )
* add test for config_flow.validate_input
* update based on pr review
* update based on pr review
* further refinings based on PR review
* Update tests/components/fyta/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update test_config_flow.py
Update tests based on PR comment
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* add handling and test for duplicate entry
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update test_config_flow.py
parametrize test for exceptions
* Update config_flow.py
Move _async_abort_entries_match, add arguments
* Update coordinator.py
* Update typing in coordinator.py
* Update coordinator.py
update typing
* Update coordinator.py
corrected typo
* Update coordinator.py
* Update entity.py
* Update sensor.py
* Update icons.json
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update entity.py
* Update test_config_flow.py
* Update config_flow.py (change FlowResult to ConfigFlowResult)
* Update config_flow.py
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/fyta/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update coordinator.py
* Update config_flow.py (typing FlowResult -> ConfigFlowResult)
* Update config_flow.py
* Aktualisieren von config_flow.py
* remove coordinator entities
* Update strings.json
remove plant_number
* Update icons.json
remove plant_number
* Update manifest.json
Update requirement to latest fyta_cli version
* Update requirements_all.txt
* Update requirements_test_all.txt
* Update homeassistant/components/fyta/sensor.py
* Update homeassistant/components/fyta/sensor.py
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/coordinator.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/fyta/strings.json
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/fyta/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/fyta/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* move test-helpers into conftest.py, adjust import of coordinator.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-03-15 18:13:35 +01:00
soonsouth
cfc2f17f35
Remove repetitive words in comments and docstrings ( #113529 )
...
chore: remove repetitive words
Signed-off-by: soonsouth <cuibuwei@163.com>
2024-03-15 18:11:12 +01:00
cosimomeli
4107cd6ad8
Add Ring Intercom open door button ( #113514 )
...
* Add button
* Make Ruff happy
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Fix doc string
* Format
* Update tests/components/ring/test_button.py
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-15 15:31:51 +01:00
Erwin Douna
1ff049cc66
Add diagnostics platform to Fastdotcom ( #111525 )
2024-03-15 14:42:07 +01:00
Åke Strandberg
eb1f37ea9b
Filter out irrelevant entities on SMO20 devices in myuplink ( #113493 )
2024-03-15 14:06:10 +01:00
J. Nick Koston
c69ab425c5
Speed up ffmpeg setup ( #113496 )
...
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* Speed up ffmpeg setup
Only check for old versions of ffmpeg if is_official_image
is False
* adjust
* adjust
* twea
* Update homeassistant/components/ffmpeg/__init__.py
* forgot about the mock in conftest for comps
2024-03-15 09:05:42 -04:00
Franck Nijhof
0e2775667d
Add category registry ( #110897 )
...
* Add category registry
* Add entity registry support
* Update homeassistant/components/config/entity_registry.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use ulid instead
* Add tests for adding same name in different scopes
* Handle keyerror on update
* Lookup tweak
* Omit categories from entity registry snapshots
* Use base registry
* Update snapshots
* Update snapshots
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-03-15 13:25:16 +01:00