Commit Graph

46695 Commits (51ff027fcefbfd0d08dfdcbf7d3b392cd943a949)

Author SHA1 Message Date
mletenay a1c94919de
Fix goodwe export limit unit on single phase DT inverters (#90427)
* Fix export limit unit on single phase DT inverters

* Update homeassistant/components/goodwe/number.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-29 16:01:14 +02:00
starkillerOG d427c35c87
Reolink improve config flow login (#90036) 2023-03-29 14:41:38 +02:00
Renat Sibgatulin 8dbcbd156a
Add new sensors to airq (#90413)
Support for the sensors introduced in air-Q firmware v1.82.0
2023-03-29 11:33:27 +02:00
MatthewFlamm c06bc28434
Limit observations requested for NWS (#90137)
* fetch data only for 70 minutes

* Use timezone aware now

* Type hint

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

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-29 10:34:29 +02:00
J. Nick Koston b58c90602f
Bump yalexs-ble to 2.1.13 (#90442) 2023-03-29 09:39:44 +02:00
Klaas Schoute 0327f312f2
Fix data issue for easyEnergy during midnight (#90434) 2023-03-29 08:37:20 +02:00
Klaas Schoute 12edaa052c
Fix data issue for energyzero during midnight (#90433) 2023-03-29 08:29:44 +02:00
J. Nick Koston 8096be768d
Isolate the sql integration with a separate query cache (#90438)
* Isolate the sql integration with a seperate query cache

If there were a lot of sql integrations they could affect
the performance of the recorder/logbook/history since they
were sharing the same LRU and since the sql sensor updates
frequently it would evict the recorder queries from the
LRU.

* generate in stmt

* avoid double gen

* Revert "avoid double gen"

This reverts commit 6a5aa65268.
2023-03-28 23:54:03 -04:00
J. Nick Koston 5dc96a6952
Fix unbound variable in sql when session setup fails (#90439)
Traceback (most recent call last):
  File "/Users/bdraco/home-assistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
    await asyncio.shield(task)
  File "/Users/bdraco/home-assistant/homeassistant/components/sql/sensor.py", line 75, in async_setup_platform
    await async_setup_sensor(
  File "/Users/bdraco/home-assistant/homeassistant/components/sql/sensor.py", line 150, in async_setup_sensor
    sessmaker := await hass.async_add_executor_job(
  File "/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/bdraco/home-assistant/homeassistant/components/sql/sensor.py", line 205, in _validate_and_get_session_maker_for_db_url
    if sess:
UnboundLocalError: local variable 'sess' referenced before assignment
2023-03-28 23:52:44 -04:00
Paulus Schoutsen 885be98f8f
OpenAI to use GPT3.5 (#90423)
* OpenAI to use GPT3.5

* Add snapshot
2023-03-29 05:37:43 +02:00
J. Nick Koston 403dffc12d
Reduce cache key size for queries that only need single columns (#90430)
* Reduce cache key size for queries that only need single columns

These queries only cared about a single row but would select
the whole set of columns from the orm object

* wrap it
2023-03-28 23:28:24 -04:00
J. Nick Koston ce28bfe5b2
Remove unused types argument in statistics query generation (#90431)
* Remove unused types argument in statistics query generation

* update test
2023-03-28 23:01:11 -04:00
Nathan Spencer 2c7c8ccbfe
Fix bluetooth polling recovered log missing argument (#90436) 2023-03-28 16:36:26 -10:00
Thijs W e3cad8baac
Migrate ssdp to config_flow for frontier_silicon (#89496)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-28 16:06:21 -10:00
TheJulianJES 47a2598b66
Add Aqara smoke sensor entities to ZHA (#90159)
* Add Aqara smoke sensor entities (WIP)

* Update smoke sensor entities (WIP)

* Drop two init attributes

* Move self-test button

* Remove self-test switch, add icons

* Add smoke sensor dbm entity

* Also add SMOKE device class to linkage alarm

Note: Enable "Linkage alarm" for this
2023-03-28 21:30:56 -04:00
TheJulianJES 12f49006cf
Add Aqara E1 thermostat entities to ZHA (#90158)
* Add Aqara E1 thermostat entities (WIP)

* Remove calibrate button for now

* Add diagnostic entity category to calibrated + external sensor

* Add multiplier for ZHA config number/away preset temp

* Set default multiplier correctly

* Add and use `CONFIG_DIAGNOSTIC_MATCH` for diagnostic entities
2023-03-28 21:12:21 -04:00
David F. Mulcahey 8660035027
Bump ZHA quirks to 0.0.95 (#90435) 2023-03-28 20:59:26 -04:00
J. Nick Koston 4f05246654
Bump onvif-zeep-async to 1.2.3 (#90382) 2023-03-28 13:54:33 -10:00
MattWestb ee2101ef38
Add binding of IKEA Matter Switch cluster in ZHA (#89623)
* Adding binding of IKEA Matter Switch cluster

IKEA Symfonisk Gen 2 is using Matter ZCL Switch command but on manufacture cluster then its not supported in ZVL R8 that need being bond for sending the commands to the coordinator.

* Update manufacturerspecific.py

* Update manufacturerspecific.py

Delete not needed function `@registries.BINDABLE_CLUSTERS.register(0xFC80)`
2023-03-28 19:33:06 -04:00
J. Nick Koston 9dc936f8b9
Add sqlalchemy LRUs to the profiler lru service (#90428) 2023-03-28 12:02:35 -10:00
mletenay 9ae0236208
Add goodwe sensors for apparent/reactive pwr (#87940) 2023-03-28 23:31:14 +02:00
J. Nick Koston f60e9c71a2
Make bootstrap cancelation safe (#90420) 2023-03-28 11:22:41 -10:00
Erik Montnemery e22618a555
Write protect entity options (#90185) 2023-03-28 22:56:51 +02:00
J. Nick Koston 0550b17d54
Rework recorder filters to avoid caching mistakes (#90419) 2023-03-28 22:51:46 +02:00
Jan Bouwhuis 93e1cd8dd8
Add header with parsed date to imap event data (#90422) 2023-03-28 22:50:25 +02:00
mkmer 0ceee2b6c3
Catch somecomfort error in Honeywell (#90425) 2023-03-28 22:48:27 +02:00
starkillerOG e9925f6062
Check webhook url is reachable in Reolink (#89585)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 22:46:59 +02:00
Jan Bouwhuis 24d0d15f38
Implement imap_content event for imap integration (#90242) 2023-03-28 21:02:43 +02:00
J. Nick Koston d21433b6af
Ensure filters are generated inside the lambda locks (#90418) 2023-03-28 20:50:10 +02:00
Aaron Godfrey 9ccd43e5f1
Add DataUpdateCoordinator to the Todoist integration (#89836)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 18:57:24 +02:00
TheJulianJES 89a3c304c2
Refactor ZHA binary sensors to read from zigpy cache (#89481)
* Construct binary sensor state from zigpy cache (WIP)

* Workaround zha-quirks issue where "MotionWithReset" quirks don't update attribute cache (WIP)

zha-quirks currently has an issue where the ZONE_STATE attribute is updated (when the zone_STATUS changes).
https://github.com/zigpy/zha-device-handlers/pull/2231 is a proper fix for this.

For now, we just update the attribute cache when we get the "zone status update notification" command.

This wasn't noticed before, as the "attribute report signal" was sent from the `cluster_command()` method and the used the provided attribute (in the signal) to update the `_state` value in the binary sensor class.
As we just tell HA to write state again when we get an attribute report now, the ZONE_STATUS attribute is read now (and needs to be correct).

* Use parse() method of main class for IasZone entity (with stripped bits)

* Change wording in comment, remove explicitly sending attr signal

(This comment should be removed/changed later anyway)

* Remove note

* Get zone_status attribute id with zigpy

* Remove `security.` prefix for `IasZone` import

`AceCluster` was already directly imported and `IasZone` is too now for getting the attribute id

* Store full zone status attribute in cache

* Check that non-alarm bits are ignored in IasZone sensor test

* Re-enable occupancy binary sensor test

This test seems to work fine and I don't see any reason why it was commented out for a while

* Fix cached read mix-up for `zone_status`/`zone_state`

This allows cached reads for `zone_state` (enrolled or not), but forces a new read for `zone_status` (alarm or not).
2023-03-28 12:39:10 -04:00
Dmitry Vlasov 4b3c1f2800
Update zwave-me-ws version to 0.3.6 (#90233) 2023-03-28 17:24:19 +02:00
DerEnderKeks 9fecdddf01
Don't use force_update for Tasmota sensors (#85943)
* fix: don't use force_update for Tasmota sensors

* Update binary_sensor.py

* Update test_binary_sensor.py

* Update test_sensor.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-28 17:14:52 +02:00
Michał Huryn 0a51914740
Blebox cover tilt (#85515)
* feature: added tilt for shutterBox

* test: include tilt in tests
2023-03-28 17:11:48 +02:00
Joakim Sørensen d907bd2ca3
Add connected relayer region to system health (#90410) 2023-03-28 17:09:59 +02:00
Wesley Vos 478a1d5e9a
Add periodically resetting meter option to utility meter (#88446)
* Use last valid state if meter is not periodically resetting

* Fix unload of entry, used during options flow submit

* Adjustments based on code review

* Move DecimalException handling to validation method

* Add test for invalid new state in calculate_adjustment method
2023-03-28 17:09:20 +02:00
ehendrix23 e45eab600f
Add has_value function/test to Jinja2 template (#79550) 2023-03-28 17:04:29 +02:00
Chris Xiao 048d30904e
Simplify qbittorrent sensor class init (#90411)
catch LoginException directly in QBittorrentSensor init

Since the `exception` arg in QBittorrentSensor `__init__` is always
LoginException, we catch LoginException directly in `__init__` instead
of passing LoginException as an argument.
2023-03-28 16:52:16 +02:00
Robert Hillis 866518c5a0
Add tests to Lidarr (#79610)
* Add tests to Lidarr

* fix js files

* take out the trash

* fix 3.9

* uno mas

* fix fixture

* ruff

* Update const.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-28 16:49:32 +02:00
Alexander Momchilov abe60375b3
Disable esphome stopping a cover if the cover doesn't support stopping (#80104)
* Make "CoverEntityFeature.STOP" conditional

* Check APIVersion before checking false by default flag

* sort

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-03-28 16:43:47 +02:00
b-uwe 3662c651c9
Add brand for HomeSeer (#90066) 2023-03-28 16:37:57 +02:00
epenet bdf29b594f
Replace comments with docstring in ColorMode enum (#90408) 2023-03-28 16:32:39 +02:00
Petro31 2123600039
Add minutely updates to relative_time and today_at template functions (#86815)
* add minutely update

* fix mypy
2023-03-28 15:10:28 +02:00
Nathan Spencer cdefc48fcd
Add panel brightness control for Litter-Robot 4 (#86269)
* Add panel brightness control for Litter-Robot 4

* Use translation_key

* Fix test
2023-03-28 15:07:09 +02:00
Erik J. Olson d228df6d81
Fix Notify Group payload data mis-merge (#90253)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-28 14:56:10 +02:00
Robert Hillis 8e7013b079
Add HTML support for Google Mail messages (#87201) 2023-03-28 14:34:57 +02:00
avee87 cc404cfe77
Refactor Tado to use entity descriptions and new naming style (#75750)
* Refactor Tado to use entity descriptions and new naming style

* minor fixes

* typing
2023-03-28 08:24:19 -04:00
Maikel Punie 0eb409cff1
Add support for select entities in velbus (#87568)
* Add support for select entities in velbus

* Implement comments

* EntityCategory is now in homeassistant.const

* more comments
2023-03-28 08:01:31 -04:00
Ryan Fleming 7b18df321b
Have octoprint camera respect verify_ssl configuration (#90384) 2023-03-28 14:00:35 +02:00
Martin Hjelmare 29645d5820
Remove mysensors ir switch (#90403) 2023-03-28 13:39:32 +02:00
MarkGodwin 6e23e00b5a
TP-Link Omada update entities code review feedback (#89668) 2023-03-28 13:25:10 +02:00
Geoff 08444eeb76
Update transmission up/down speed values (#88528)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 13:20:20 +02:00
PatrickGlesner f72bf73b03
Fix NMBS IndexError (#90365) 2023-03-28 13:19:52 +02:00
J. Nick Koston de2ca31a71
Remove lru_cache on websocket _state_diff (#90392) 2023-03-28 13:08:43 +02:00
Martin Hjelmare e6c94d7854
Remove mysensors notify (#90402) 2023-03-28 13:05:09 +02:00
Jan Iven b6a0ac6f0a
Fix envoy last_seven_days_energy* state class (#84528)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 13:04:08 +02:00
J. Nick Koston b207790177
Fix benign typo in discovery flow helper (#90396) 2023-03-28 13:01:41 +02:00
Willem-Jan van Rootselaar 4575352101
Bump python-bsblan to 0.5.11 (#90377) 2023-03-28 12:50:57 +02:00
Michael e4bb339a1e
Add device info to Nextcloud integration (#90328)
* add device_info

* use entry_id as identifier + device name

* use shorthand attributes

* remove model from device info

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

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 12:43:00 +02:00
Olivier Ouellet 1c465b5ad0
Add encoding configuration setting to REST and Scape (#90254)
* Create new config parameter for default character encoding if no character encoding is declared

* Changes suggested by gjohansson-ST

* Added config flow for scape

* Removed "character"

* Change to create_async_httpx_client

* Remove CONF_ENCODING from Scrape SENSOR_SCHEMA

* Debug scrape test
2023-03-28 12:42:31 +02:00
Erik Montnemery 3c3860c923
Make OTBR use same channel as ZHA (#88546) 2023-03-28 12:34:25 +02:00
Allen Porter ae41547b73
Update calendar to always request start/end dates in local time rather than UTC (#90386) 2023-03-28 12:25:44 +02:00
J. Nick Koston be5714e3fd
Use slots for recorder tasks to reduce memory (#90387) 2023-03-28 12:24:12 +02:00
BNolet 6fbdcac323
Fix setting color + brightness of Tuya lights (#88470)
* Check if changing TO a color mode

Changing brightness alone does not change work mode, but changing brightness with a color value will keep the light in white mode. 

By verifying the new state has color or not, rather than the existing state being in color work mode, the light will change to color correctly.

Tuya interprets HSV as including the brightness in the (v) value (which is generally what that's used for when setting HSV values). The brightness value given by Home Assistant is still used in this case.

* Fix brightness-only turning colour mode to white

This will take into account the case where brightness is the only parameter for both the case of colour mode and white mode.

Tests passed after this change:

* Brightness only (colour mode) 
* Brightness only (white mode) 
* Colour only (colour mode) 
* Colour only (white mode) 
* Colour temp only (colour mode) 
* Colour temp only (white mode) 
* Colour + brightness (colour mode) 
* Colour + brightness (white mode) 
* Colour temp + brightness (colour mode) 
* Colour temp + brightness (white mode) 

* Fix code formatting
2023-03-28 12:20:54 +02:00
Chris Xiao e617bfb1bb
Display unit of elevation in met config flow (#88283)
* display unit of elevation in met config flow

Co-authored-by: lijake8 <lijake8@users.noreply.github.com>
Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>

* use NumberSelector for met config flow

* met remove unused is_metric param

---------

Signed-off-by: Chris Xiao <30990835+chrisx8@users.noreply.github.com>
Co-authored-by: lijake8 <lijake8@users.noreply.github.com>
2023-03-28 11:51:35 +02:00
Pascal Reeb 23a1a8075c
Add callback support to nuki (#88346)
* feat(nuki): add callback support

* fix(nuki): add webhook_enabled to tests

* remove callback choice, add repair if it's https

* black

* fix(nuki): implemented feedback from pvizeli and frenck

* remove unneded test change

* remove issue_registry and http check

* remove unneded response

* add await to executor_job
2023-03-28 11:28:04 +02:00
Jens Østergaard Nielsen e0424c8322
Use shorthand attributes in IHC (#90350)
* typings to make linter happy

* Moving device_class and native_value to init

* remove is_on and use attr_is_on

* Use try_parse_enum for sensor type

* Remove not needed sensor_type

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

* Update homeassistant/components/ihc/sensor.py

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

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-28 10:23:00 +02:00
dougiteixeira 190393c6bb
Improve Proxmox VE type hints (#90359)
* Improves some type hints in Proxmox VE

* update

* update]

* fix isort

* Fix vm_id type

* Fix vm_id type

* Update homeassistant/components/proxmoxve/__init__.py

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

* Update homeassistant/components/proxmoxve/__init__.py

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

* Change initialization of _proxmox

* Move definition of _proxmox to class level

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-28 10:17:33 +02:00
Raman Gupta c51ed4b328
Redact secret zwave values in diagnostics (#90389)
* redact secret zwave values from diagnostics

* shhrink

* rename
2023-03-28 09:59:01 +02:00
Jan Bouwhuis 14ffda9758
Remove dependency on async_setup from mqtt integration (#87987)
* Remove async_setup from mqtt integration

* Final update common tests

* Related tests init

* Related tests diagnostics

* Related tests config_flow

* Cleanup and correct test

* Keep websockets_api commands in async_setup
2023-03-28 09:37:07 +02:00
Erik Montnemery 5e03272821
Bump pychromecast to 13.0.6 (#90390) 2023-03-28 09:36:34 +02:00
G Johansson 706e8d5612
Add product calculation to Group sensor (#87373)
* Group product

* config flow
2023-03-28 09:35:09 +02:00
Aaron Godfrey 8b7594ae08
Look up todoist collaborators only when adding new task (#87957)
* Look up collaborators only when adding new task.

Also fixed a few api call arguments that were incorrect. The `labels`
key should have been a list of strings and the `assignee` key should
have been `assignee_id`.

* Add missing type in test.

* Remove print
2023-03-28 09:33:32 +02:00
Aaron Bach ff135ecdc6
Add a calendar entity to Ridwell (#88108)
* Subclass a `DataUpdateCoordinator` for Ridwell

* Add a calendar entity to Ridwell

* Simpler unique ID

* Fix tests

* Docstring
2023-03-28 09:31:36 +02:00
Joakim Plate 0666a4750c
Add re-auth support to philips_js (#88774)
* Add re-auth support to philips_js

* Adjustments from review

* Don't allow duplicate entries for now
2023-03-28 09:30:42 +02:00
stickpin dc05272120
Display only supported Home Connect appliance programs (#88801)
Show only supported device programs
2023-03-28 09:14:19 +02:00
Erik Montnemery 586471b5a9
Improve threshold binary sensor (#88978)
Improve threshold sensor
2023-03-28 09:11:13 +02:00
gjong bfb5daa31c
Add phase information to YouLess (#89255) 2023-03-28 08:49:31 +02:00
Mark Adkins 38f3b9f165
Add SharkIQ EU region support (#89349)
* SharkIQ Dep & Codeowner Update

* Update code owners

* Add EU Region Support

* Update Config Flow Tests

* Standardize Region Comparison Strings

* Add Translation Support to Region Selector

* Fix Validation Tests
2023-03-28 08:48:32 +02:00
Penny Wood db6f0827aa
Allow reloading iZone config entry (#89572)
* Allow reloading of iZone config entries
---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-28 08:47:45 +02:00
Cosmin Luță 8807878529
Add Mikrotik WifiWave2 (#89711)
* Add support for wifiwave2

* Add test for wifiwave2
2023-03-28 08:46:16 +02:00
mkmer b399e5c8b7
Handle uncaught exceptions during update in Aladdin_connect (#89889)
* Handle uncaught errors during update

* Remove unnecssary patch

* Update tests/components/aladdin_connect/test_cover.py

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

* Update tests/components/aladdin_connect/test_cover.py

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

* Remove unasserted statement

* Blocking is True - one more

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-28 08:45:10 +02:00
Michael c0387a655c
Turn AVM FRITZ!Box Tools binary sensors into coordinator entities (#89955)
make binary sensors coordinator entities
2023-03-28 08:39:34 +02:00
Maciej Bieniek 33fef5592f
Refactor GIOS sensor platform (#89389) 2023-03-28 08:36:42 +02:00
J. Nick Koston dc37d92197
Add lru stats to the profiler integration (#90388) 2023-03-28 08:34:56 +02:00
Matthias Alphart 3dd3cb195f
Set default value for some Fronius entities (#89475) 2023-03-28 08:23:53 +02:00
Renat Sibgatulin e27d3c9523
Improve airq handling of DeviceInfo (#90232)
* Reduce data sharing between ConfigFlow and DataUpdateCoordinator

Instead of fetching device information from the device once in
`ConfigFlow` and then piping it through in `ConfigEntry.data`,
only use as much as needed in `ConfigFlow.async_step_user`, then fetch
again in `AirQCoordinator._async_update_data` if a key is missing.

Additionally, factor `AirQCoordinator` out into a sumbodule.

Add a simple test for `AirQCoordinator.device_info` update.

Positive side effect: `AirQCoordinator.device_info` is
updated explicitly, instead of dumping the entire content of (a fully
compatible) `TypedDict`, retrieved from `aioairq`.

* Remove tests ill-suited to this PR

`test_config_flow.test_duplicate_error` slipped through by mistake,
while `test_coordinator.test_fetch_device_info_on_first_update` may need
a more thoroughly suite of accompanying tests

* Ignore airq/coordinator.py

...newly separated from airq/__init__.py, that's already in this list

* Reorder files alphabetically
2023-03-28 08:18:47 +02:00
dougiteixeira 5b4663d2ca
Bump proxmoxer to 2.0.1 in Proxmox VE (#90378) 2023-03-28 01:27:54 +02:00
J. Nick Koston 59113a3e4c
Bump flux_led to 0.28.36 (#90380) 2023-03-28 00:50:11 +02:00
Michael a361fba8f5
Bump nextcloudmonitor to 1.4.0 (#90372) 2023-03-28 00:48:14 +02:00
J. Nick Koston 1cd2fe9d28
Bump aiodiscover to 1.4.15 (#90383) 2023-03-28 00:44:34 +02:00
J. Nick Koston 058a2c9d83
Bump yalexs-ble to 2.1.12 (#90381) 2023-03-28 00:41:51 +02:00
G Johansson cb6d384dba
Workday cleanup (#90267)
* clean binary sensor

* fix const

* clean sensor

* Fix tests

* Clean up

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-03-27 23:11:49 +02:00
Martin Hjelmare 182af87f97
Refactor matter device entity value conversion (#90368) 2023-03-27 22:21:56 +02:00
Franck Nijhof fb4b35709d
Add state translations for helpers (#90356)
* Add state translations for helpers

* Managed via the UI
2023-03-27 16:19:25 -04:00
Jonas Bergler 9f04c23414
Support toggling debug logging for custom components (#90340)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-27 09:40:58 -10:00
Denis Shulyaka 71b5ccee23
Fix generic_hygrostat error at startup (#88764) 2023-03-27 21:22:36 +02:00
G Johansson 96698813ef
Cleanup command_line (#90268)
* Cleanup command_line

* Fix ipv6 resolver

* Fix fix

* Fix tests

* Align states
2023-03-27 21:19:09 +02:00
Erik Montnemery 506a916a13
Add reauth flow to dormakaba dkey (#90225) 2023-03-27 08:37:31 -10:00
Martin Hjelmare 18933df95c
Clean dead code from matter (#90369) 2023-03-27 20:06:59 +02:00
Franck Nijhof a405112142
Add state translations for Script entities (#90354) 2023-03-27 13:59:57 -04:00
Trevor Bernard d59e2b1349
Add "stream" to default_config (#90153)
* add stream to manifest

* Update __init__.py

remove av check from init

* Update homeassistant/components/default_config/__init__.py

* Update requirements

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-27 13:57:56 -04:00
Franck Nijhof b033232b06
Filter out ASCII tab or newline from input URLs (#90348) 2023-03-27 13:49:40 -04:00
Franck Nijhof 89f89cab2c
Use entity name translations in Verisure (#90362) 2023-03-27 16:55:10 +02:00
Jan Bouwhuis fd3280260d
Remove unreachable continue statement in imap push coordinator (#90361) 2023-03-27 16:39:51 +02:00
dougiteixeira 2ce3c014ff
Move Proxmox VE constants (#90357)
* Move constants to const.py

* Update homeassistant/components/proxmoxve/const.py

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

* Update homeassistant/components/proxmoxve/const.py

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

* Update homeassistant/components/proxmoxve/__init__.py

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

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-27 15:27:55 +02:00
Avi Miller a32c78238e
Bump lifx dependencies (#90345) 2023-03-27 14:06:30 +02:00
Raman Gupta c11a3881af
Bump zwave-js-server-python to 0.47.0 (#90212) 2023-03-27 12:25:04 +02:00
Joel Goguen d9471fd01a
Bump python-holidays to 0.21.13 (#89724)
Update Python holidays module to 0.21.13

python-holidays 0.19-0.21.13 adds support for new countries and enhances
support for many currently supported countries.
2023-03-27 12:14:16 +02:00
Jan Bouwhuis 5b3c57ff1e
Add option flow for imap integration (#89914)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-27 11:47:22 +02:00
starkillerOG 0d58646823
Bump reolink-aio to 0.5.7 (#90344) 2023-03-27 11:11:38 +02:00
starkillerOG 97f8a3fdcd
Reolink add auto tracking entities (#90063) 2023-03-27 11:04:03 +02:00
PatrickGlesner 56293ad876
Revert "Fix NMBS IndexError" (#90346) 2023-03-27 11:00:52 +02:00
epenet 94a52d5cca
Adjust tts default_options type hints (#90053)
* Adjust tts default_options type hints

* Improve other components

* Adjust

* Revert component changes

* Adjust get_tts_audio in amazon_polly
2023-03-27 11:00:23 +02:00
epenet 164482dc08
Use lambda in gree switch (#90316) 2023-03-27 10:00:41 +02:00
J. Nick Koston 6a5c05e7d2
Add support for clearing the on device GATT cache to esphome (#90318) 2023-03-27 09:34:28 +02:00
Jan Bouwhuis a773c37190
Cleanup name assignment imap sensor (#90306) 2023-03-27 08:33:46 +02:00
G Johansson 624860da0e
Remove deprecated platform yaml in Scrape (#90272)
* Deprecate platform yaml

* typing

* DiscoveryInfoType
2023-03-27 08:05:30 +02:00
Paulus Schoutsen c3717f8182
Clean up voice assistant integration (#90239)
* Clean up voice assistant

* Reinstate auto-removed imports

* Resample STT audio from 44.1Khz to 16Khz

* Energy based VAD for prototyping

---------

Co-authored-by: Michael Hansen <mike@rhasspy.org>
2023-03-26 21:41:17 -05:00
J. Nick Koston 7098debe09
Fix sql doing I/O in the event loop at startup (#90335)
* Fix sql doing I/O in the event loop

* Fix sql doing I/O in the event loop

* no test query on main db

* fix mocking because it was targeting the recorder
2023-03-26 21:02:24 -04:00
Anders Melchiorsen 75e28826e0
Upgrade netgear_lte third-party library to v0.0.15 (#90324)
* Upgrade netgear_lte third-party library to 0.0.15

* Create explicit tasks for asyncio.wait()
2023-03-26 19:22:20 -04:00
J. Nick Koston 65e46e3261
Bump aioesphomeapi to 13.6.0 (#90330) 2023-03-26 12:58:07 -10:00
J. Nick Koston ce9099a386
Bump cryptography to 40.0.1 (#90326) 2023-03-26 12:30:17 -10:00
J. Nick Koston a7c796a2f7
Ensure esphome connected future is awaited when connecting is canceled (#90329) 2023-03-26 12:30:00 -10:00
J. Nick Koston a733ca96a2
Bump yalexs-ble to 2.1.9 (#90320) 2023-03-27 00:17:32 +02:00
skrynklarn bdd095423b
Add last trip time attribute to Verisure binary sensors (#89944) 2023-03-27 00:17:12 +02:00
Michael 00ce757051
Apply late review comments from #89396 in Nextcloud (#90327) 2023-03-27 00:10:57 +02:00
Raman Gupta 16028dc9bc
Add milliseconds as valid duration sensor unit (#90018) 2023-03-26 23:52:01 +02:00
Chris Xiao 2642d37505
Set qbittorrent integration_type to service (#90236) 2023-03-26 23:40:59 +02:00
Jens Østergaard Nielsen 0393797ade
Bump ihcsdk to 2.8.5 (#90266) 2023-03-26 23:32:06 +02:00
Allen Porter fa35867765
Bump ical to 4.5.1 and set PRODID for home assistant in local calendar ics (#90291) 2023-03-26 23:00:45 +02:00
Aaron Godfrey 745df277a0
Fix Todoist end date for all day event (#89837) 2023-03-26 22:08:36 +02:00
J. Nick Koston 8c9966aa05
Ensure esphome subscribes to bluetooth connection free before accepting connect requests (#90319) 2023-03-26 22:06:14 +02:00
Michael 45262c6114
Implement config flow for nextcloud (#89396)
* implement config flow

* add tests

* fix hassfest and requirements

* abort import on connection error

* add add_suggested_values_to_schema

* mock async_setup_entry

* revert code owner change

* fix try connect in config flow

* add device info

* allow multiple instances

* fix import in config flow

* remove custom scan interval from coordinator

* applay suggestions

* apply suggestions

* take over ownership from @meichthys

* cleanup import data before passing to user step

* apply suggestions to tests

* add untested files to .coveragerc
2023-03-26 21:14:17 +02:00
J. Nick Koston 542def7f82
Bump pySwitchbot to 0.37.5 (#90317) 2023-03-26 09:10:35 -10:00
Alexey Baturin 89355e0879
Add WLED IP as a sensor (#90241)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-26 20:03:03 +02:00
epenet 3b83340f6e
Improve get_browse_image type hints in media player (#90057) 2023-03-26 19:54:01 +02:00
epenet 3058cc8d56
Adjust targets type hint in notify platform (#90062) 2023-03-26 19:52:55 +02:00
Niels Perfors 1baadc1d09
Update Verisure package to 2.6.1 (#89318)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: RobinBolder <33325401+RobinBolder@users.noreply.github.com>
Co-authored-by: Tobias Lindaaker <tobias@thobe.org>
2023-03-26 19:32:25 +02:00
J. Nick Koston f8431278c8
Bump yalexs-ble to 2.1.6 (#90295) 2023-03-26 11:05:21 +02:00
Robert Svensson a0b6da33ab
Strict typing of UniFi integration (#90278)
* Fix typing of UniFi controller

* Strict typing of unifi.__init__

* Strict typing of UniFi config_flow

* Strict typing of UniFi switch

* Strict typing UniFi sensor

* Strict typing UniFi device tracker

* Strict typing of UniFi

* Fix library issues related to typing
2023-03-26 09:57:13 +02:00
G Johansson e8f3b9c09a
Remove Volvooncall integration yaml import (#90288)
Depr yaml import
2023-03-26 09:42:38 +02:00
G Johansson b3f3f234c6
Remove pushbullet platform yaml import (#90285)
Depr pushbullet yaml
2023-03-26 09:40:07 +02:00
Felix Rotthowe 40131d811c
Handle Livisi TokenExpiredException (#90258)
* reauth

* Request new Token on TokenExpiredException

* relogin using stored auth data

* fix imports

* import formatting
2023-03-26 09:35:49 +02:00
J. Nick Koston 0b8fb36a7e
Fix onvif binary sensors (#90202)
* Fix httpx client creating a new ssl context with each client

While working on https://github.com/home-assistant/core/issues/83524
it was discovered that each new httpx client creates a new ssl context

f1157dbc41/httpx/_transports/default.py (L261)

If an ssl context is passed in creating a new one is avoided here

f1157dbc41/httpx/_config.py (L110)

This change makes httpx ssl no-verify behavior match aiohttp ssl no-verify
behavior

6da04694fd/aiohttp/connector.py (L892)

aiohttp solved this by wrapping the code that generates the ssl context
in an lru_cache

* compact

* Fix onvif binary sensors

fixes #83524

needs https://github.com/hunterjm/python-onvif-zeep-async/pull/9 first
to avoid recreating the memory leak

* Fix memory leak in onvif

Work around until https://github.com/hunterjm/python-onvif-zeep-async/pull/9

followup to https://github.com/home-assistant/core/pull/83006

* move check

* onvif-zeep-async 1.2.2

* fix unloading
2023-03-25 23:28:38 -04:00
J. Nick Koston bd08d88812
Bump yalexs-ble to 2.1.5 (#90287)
Bump yalexs-ble 2.1.5

Some of the lever locks need a bit longer debounce time
since they still report stale state for up to 6s

changelog: https://github.com/bdraco/yalexs-ble/compare/v2.1.4...v2.1.5
2023-03-25 23:27:35 -04:00
J. Nick Koston 5f59bab9ec
Bump bleak to 0.20.1 (#90282)
Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>
2023-03-25 16:29:26 -10:00
G Johansson 53726cb4a1
Remove Magicseaweed (#90277) 2023-03-25 22:02:10 -04:00
J. Nick Koston 255f12ec05
Bump bleak-retry-connector to 3.0.2 (#90279)
changelog: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/v3.0.1...v3.0.2
2023-03-25 21:48:03 -04:00
G Johansson 92beb48a41
Add sensor platform to Sun (#81045)
* Sun sensor
* remove extra attr
* Add tests
* Add back attributes
* position sensors disabled default
* entity id
* unique id
* test init to attributes
* Fix test init
* Fix test sensor
* test unique id
* uom
* remove rising
* Remove not needed uom property
* Fix reload issue
* degree
2023-03-26 07:24:43 +08:00