Stefan Rado
efbd47c828
Rewrite SoundTouch tests to use mocked payloads ( #72984 )
2022-06-28 14:02:39 -07:00
Andre Lengwenus
389f1f4eda
Add lcn_codelock event and corresponding device trigger ( #73022 )
2022-06-28 14:01:18 -07:00
Erik Montnemery
146ff83a16
Migrate rest binary_sensor and switch to TemplateEntity ( #73307 )
2022-06-28 13:53:38 -07:00
Robert Svensson
abf67c3153
Normalize deCONZ binary sensor unique IDs ( #73657 )
2022-06-28 13:45:25 -07:00
Allen Porter
02d1676301
Fix unexpected exception in Google Calendar OAuth exchange ( #73963 )
2022-06-28 13:29:11 -07:00
J. Nick Koston
a8349a4866
Adjust entity filters to make includes stronger than excludes ( #74080 )
...
* Adjust entity filters to make includes stronger than excludes
Fixes #59080
* adjust test for stronger entity glob includes
* sync with docs
2022-06-28 11:42:51 -05:00
Erik Montnemery
26a85c6644
Add Entity.has_entity_name attribute ( #73217 )
2022-06-28 09:38:05 -07:00
G Johansson
c4ff317ec6
Smhi minor fixes ( #72606 )
...
* Initial commit
* Tests
* From review comments
2022-06-28 14:29:00 +02:00
Erik Montnemery
39c7056be5
Migrate climacell to native_* ( #74039 )
2022-06-28 13:39:37 +02:00
Erik Montnemery
ae63cd8677
Add support for unavailable to cover groups ( #74053 )
2022-06-28 11:12:14 +02:00
Erik Montnemery
7d709c074d
Add support for unavailable and unknown to fan groups ( #74054 )
2022-06-28 10:58:52 +02:00
Paulus Schoutsen
6eeb1855ff
Remove entities from Alexa when disabling Alexa ( #73999 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-28 10:32:50 +02:00
Erik Montnemery
824de2ef4c
Modify behavior of lock groups ( #74055 )
2022-06-28 10:29:56 +02:00
Erik Montnemery
9a613aeb96
Modify behavior of media_player groups ( #74056 )
2022-06-28 10:22:46 +02:00
epenet
35df012b6e
Fix reauth step in nest ( #74090 )
2022-06-28 10:06:05 +02:00
J. Nick Koston
720768560d
Fix devices missing in logbook when all requested entities are filtered ( #74073 )
2022-06-28 08:44:06 +02:00
G Johansson
2f0fe0df82
Fix wind speed SMHI ( #72999 )
2022-06-28 01:50:06 +02:00
epenet
b2c84a4c4a
Adjust reauth in awair config flow ( #72386 )
...
* Adjust config-flow type hints in awair
* Improve typing of dict arguments
* Use mapping for async_step_reauth
* Add async_step_reauth_confirm
* Don't try old token
* Adjust translations
* Adjust tests
* Update tests/components/awair/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/awair/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/awair/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/awair/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/awair/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/awair/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/awair/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-28 01:49:10 +02:00
Christopher Bailey
b9c636ba4e
Automatically add newly added devices for UniFi Protect ( #73879 )
2022-06-27 16:03:25 -05:00
Erik Montnemery
84ea8a3c43
Fix misleading comments in tomorrowio ( #74049 )
...
* Fix misleading comments in tomorrowio
* Add test
2022-06-27 14:26:04 -04:00
Erik Montnemery
5f06404db5
Migrate tomorrowio to native_* ( #74050 )
2022-06-27 14:25:36 -04:00
Joakim Plate
992ceb1a09
Google Assistant diagnostics and synchronization ( #73574 )
...
* Add config flow import for local google assistant
* Add diagnostic with sync response
* Add button for device sync
2022-06-27 20:24:15 +02:00
RenierM26
10ea88e0ea
Switchbot bump Dependency 0.14.0 ( #74001 )
...
* Bump requirement.
* Switchbot depenacy update, full async.
* Update tests, remove redundant config entry check.
* Update requirements_test_all.txt
* Update requirements_all.txt
* Remove asyncio lock. Not required anymore with bleak.
* Update requirements_all.txt
* Update requirements_test_all.txt
* pyswitchbot no longer uses bluepy
2022-06-27 13:56:51 +02:00
MatthewFlamm
e32c7dbf92
Use built in unit handling for nws weather ( #73981 )
...
use built in unit handling for nws
2022-06-27 11:39:02 +02:00
akloeckner
aa314a0901
Add this variable to trigger-based templates ( #72437 )
...
add this variables to trigger-based templates
follow-up for https://github.com/home-assistant/core/issues/70359
2022-06-27 08:59:29 +02:00
J. Nick Koston
6ec6f0a835
Fix file sensor reading the whole file to get the last line ( #73986 )
2022-06-25 21:02:50 -05:00
Khole
ce144bf631
Add Hive device configuration to config flow ( #73955 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-26 00:13:30 +02:00
J. Nick Koston
15ed329108
Add async_remove_config_entry_device support to nexia ( #73966 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-06-25 12:02:38 -04:00
Christopher Bailey
e67f8720e8
Refactor UniFi Protect tests ( #73971 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-25 08:15:38 -07:00
Paulus Schoutsen
57efa9569c
Cache is_supported for Google entities ( #73936 )
2022-06-24 17:05:36 -04:00
J. Nick Koston
f29cc33fa0
Fix selecting entity_ids and device_ids in events with MySQL and PostgreSQL with logbook ( #73918 )
...
* Fix selecting entity_ids and device_ids in events with MySQL and PostgreSQL
Fixes #73818
* add cover
2022-06-24 15:43:35 +02:00
Rami Mosleh
d1708861db
Add config flow for `simplepush` ( #73471 )
...
* Add config flow for `simplepush`
* fix warning message
* fix typos
* Add importing yaml config
* patch integration setup
* Add check for errrors raised by the library
* fix coverage
* Adjust comment and logging message
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-24 08:39:48 +02:00
Raman Gupta
768e53ac2d
Add zwave_js/get_any_firmware_update_progress WS cmd ( #73905 )
2022-06-23 20:13:37 -04:00
0bmay
3058a432a5
Bump py-canary to 0.5.3 ( #73922 )
2022-06-23 23:33:03 +02:00
Erik Montnemery
9b8c3e37bb
Improve group tests ( #73630 )
2022-06-23 21:38:17 +02:00
J. Nick Koston
00a79635c1
Revert "Remove sqlalchemy lambda_stmt usage from history, logbook, and statistics ( #73191 )" ( #73917 )
2022-06-23 13:59:55 -05:00
J. Nick Koston
2742bf86e3
Switch mqtt to use json helper ( #73871 )
...
* Switch mqtt to use json helper
* whitespace
2022-06-23 14:29:09 +02:00
Paulus Schoutsen
10b083bbf5
Sync empty entities when Google is disabled in cloud ( #72806 )
2022-06-23 11:41:34 +02:00
Rami Mosleh
0dd181f922
Remove deprecated YAML for Islamic prayer times ( #72483 )
2022-06-23 11:35:47 +02:00
epenet
f91a222034
Fix compensation (numpy) tests ( #73890 )
2022-06-23 11:12:22 +02:00
G Johansson
90e1fb6ce2
Weather unit conversion ( #73441 )
...
Co-authored-by: Erik <erik@montnemery.com>
2022-06-23 10:48:30 +02:00
Christian Rodriguez
3ce5b05aa5
Add bypassed custom attribute to NX584ZoneSensor ( #71767 )
2022-06-23 01:59:59 +02:00
Robert Svensson
aef69f87f4
More enums in deCONZ Alarm Control Panel ( #73800 )
2022-06-22 23:02:34 +02:00
Christopher Bailey
01a9367281
UniFi Protect cleanup and enable unadopted devices ( #73860 )
2022-06-22 15:57:21 -05:00
Robert Hillis
5c5fd746fd
Add digital loggers as a Belkin supported brand ( #72515 )
2022-06-22 22:38:45 +02:00
Franck Nijhof
ec119ae718
Automatically onboard WLED ( #73853 )
2022-06-22 22:37:36 +02:00
Franck Nijhof
320ef55085
Automatically onboard Elgato ( #73847 )
2022-06-22 22:37:25 +02:00
J. Nick Koston
8b067e83f7
Initial orjson support take 3 ( #73849 )
...
* Initial orjson support take 2
Still need to work out problem building wheels
--
Redux of #72754 / #32153 Now possible since the following is solved:
ijl/orjson#220 (comment)
This implements orjson where we use our default encoder. This does not implement orjson where `ExtendedJSONEncoder` is used as these areas tend to be called far less frequently. If its desired, this could be done in a followup, but it seemed like a case of diminishing returns (except maybe for large diagnostics files, or traces, but those are not expected to be downloaded frequently).
Areas where this makes a perceptible difference:
- Anything that subscribes to entities (Initial subscribe_entities payload)
- Initial download of registries on first connection / restore
- History queries
- Saving states to the database
- Large logbook queries
- Anything that subscribes to events (appdaemon)
Cavets:
orjson supports serializing dataclasses natively (and much faster) which
eliminates the need to implement `as_dict` in many places
when the data is already in a dataclass. This works
well as long as all the data in the dataclass can also
be serialized. I audited all places where we have an `as_dict`
for a dataclass and found only backups needs to be adjusted (support for `Path` needed to be added for backups). I was a little bit worried about `SensorExtraStoredData` with `Decimal` but it all seems to work out from since it converts it before it gets to the json encoding cc @dgomes
If it turns out to be a problem we can disable this
with option |= [orjson.OPT_PASSTHROUGH_DATACLASS](https://github.com/ijl/orjson#opt_passthrough_dataclass ) and it
will fallback to `as_dict`
Its quite impressive for history queries
<img width="1271" alt="Screen_Shot_2022-05-30_at_23_46_30" src="https://user-images.githubusercontent.com/663432/171145699-661ad9db-d91d-4b2d-9c1a-9d7866c03a73.png ">
* use for views as well
* handle UnicodeEncodeError
* tweak
* DRY
* DRY
* not needed
* fix tests
* Update tests/components/http/test_view.py
* Update tests/components/http/test_view.py
* black
* templates
2022-06-22 21:59:51 +02:00
Franck Nijhof
1ead6d6762
Automatically onboard Yeelight ( #73854 )
2022-06-22 21:19:34 +02:00
Franck Nijhof
9229d14962
Automatically onboard Wiz ( #73851 )
2022-06-22 20:17:28 +02:00
G Johansson
532e25d087
Sensibo use switch for Pure boost ( #73833 )
...
* Initial commit
* Finalize pure boost switch
* Fix service required
2022-06-22 18:26:25 +02:00
jjlawren
86fde1a644
Handle failures during initial Sonos subscription ( #73456 )
2022-06-22 10:56:17 -05:00
Christopher Bailey
0461ec1566
Fix auth_sign_path with query params (take 2) ( #73829 )
2022-06-22 10:09:21 -05:00
J. Nick Koston
19b2b33037
Speed up subscribing to mqtt topics on connect ( #73685 )
...
* Speed up subscribing to mqtt topics
* update tests
* Remove extra function wrapper
* Recover debug logging for subscriptions
* Small changes and test
* Update homeassistant/components/mqtt/client.py
* Update client.py
Co-authored-by: jbouwh <jan@jbsoft.nl>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-06-22 16:03:18 +02:00
rikroe
54591b8ca1
BMW Connected Drive: Handle HTTP 429 issues better ( #73675 )
...
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2022-06-22 14:24:16 +02:00
Jonny Bergdahl
95eb55dd66
Fix thumbnail issues in Twitch integration ( #72564 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-06-22 10:22:09 +02:00
Tom Harris
08b69319ca
Insteon bug fixes ( #73791 )
2022-06-22 10:04:11 +02:00
Franck Nijhof
39a00ffe09
Automatically onboard Cast ( #73813 )
2022-06-22 09:49:54 +02:00
jjlawren
07a46dee39
Additional surround controls for Sonos ( #73805 )
2022-06-22 09:08:31 +02:00
J. Nick Koston
1e0a3246f4
Revert "Fix auth_sign_path with query params ( #73240 )" ( #73808 )
2022-06-21 22:45:16 -05:00
Erik Montnemery
274f585646
Tweak title of zha config entry created by yellow hw ( #73797 )
2022-06-21 16:21:31 -04:00
Christopher Bailey
67618311fa
Fix auth_sign_path with query params ( #73240 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-21 14:21:47 -05:00
J. Nick Koston
adf0f62963
Add websocket api to fetch config entries ( #73570 )
...
* Add websocket api to fetch config entries
* add coverage for failure case
2022-06-21 20:09:22 +02:00
Christopher Bailey
9940a85e28
Add sensors for read-only devices for UniFi Protect ( #73768 )
2022-06-21 12:01:06 -05:00
Christopher Bailey
3823edda32
Add Permission checking for UniFi Protect ( #73765 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-21 11:17:29 -05:00
Pascal Vizeli
eac7c5f177
Remove deprecated X-Hassio-Key usage ( #73783 )
...
* Remove deprecated X-Hassio-Key usage
* ...
* Update const.py
* Update ingress.py
* Update test_ingress.py
Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2022-06-21 17:11:20 +02:00
Allen Porter
cf9cab900e
Allow multiple configuration entries for nest integration ( #73720 )
...
* Add multiple config entry support for Nest
* Set a config entry unique id based on nest project id
* Add missing translations and remove untested committed
* Remove unnecessary translation
* Remove dead code
* Remove old handling to avoid duplicate error logs
2022-06-21 16:36:13 +02:00
Allen Porter
d399815bea
Allow multiple google calendar config entries ( #73715 )
...
* Support multiple config entries at once
* Add test coverage for multiple config entries
* Add support for multiple config entries to google config flow
* Clear hass.data when unloading config entry
* Make google config flow defensive against reuse of the same account
* Assign existing google config entries a unique id
* Migrate entities to new unique id format
* Support muliple accounts per oauth client id
* Fix mypy typing errors
* Hard fail to keep state consistent, removing graceful degredation
* Remove invalid entity regsitry entries
2022-06-21 06:42:41 -07:00
G Johansson
0007178d63
Add filters and service to Sensibo ( #73687 )
2022-06-20 22:33:47 -05:00
Christopher Bailey
3851c7b4b4
Bumps version of pyunifiprotect to 4.0.4 ( #73722 )
2022-06-20 22:09:13 -05:00
Christopher Bailey
b956d125f9
Fix UniFi Protect write rate sensor ( #73759 )
2022-06-20 19:10:59 -05:00
Franck Nijhof
16e7593a7b
Add state class to Flipr sensors ( #73747 )
2022-06-20 20:29:50 +02:00
Gordon Allott
66b02ecff0
Ensure metoffice daily are returned once daily ( #72440 )
...
* ensure metoffice daily are returned once daily
* Fixes metoffice tests for MODE_DAILY
2022-06-20 20:27:39 +02:00
Rami Mosleh
81e3ed790d
Add re-authentication for `transmission` ( #73124 )
...
* Add reauth flow to transmission
* fix async_setup
* add strings
* fix test coverage
2022-06-20 16:09:58 +02:00
Joel
3824703a64
Fix homematicip cloud cover tilt position ( #73410 )
...
* cover slats fixed set tilt position
* Update cover.py
* Adjust tests
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-06-20 16:08:43 +02:00
w-marco
c075760ca0
Display Windows as TYPE_WINDOW in Google Home ( #73533 )
...
* Display Windows as TYPE_WINDOW in Google Home
* set window type to window in smart_home test
2022-06-20 13:03:43 +02:00
Erik Montnemery
b145aeaf75
Fix flaky recorder test ( #73733 )
2022-06-20 12:27:25 +02:00
Duco Sebel
db5e94c93b
Fix HomeWizard is not catching RequestError ( #73719 )
...
* Fix RequestError was not catched
* Add test for RequestError
2022-06-20 10:30:57 +02:00
Jan Bouwhuis
57daeaa174
Fix MQTT config schema to ensure correct validation ( #73619 )
...
* Ensure config schema validation
* Use correct schema for device_tracker
* Remove schema validation from the platform setup
* Remove loop to build schema
2022-06-20 08:51:12 +02:00
Raman Gupta
e53372f559
Add `zwave_js/get_firmware_update_progress` WS command ( #73304 )
...
Add zwave_js/get_firmware_update_progress WS command
2022-06-19 15:33:58 -04:00
Raman Gupta
bb5a6a7104
Add `zwave_js/get_firmware_update_capabilties` WS command ( #73691 )
...
* Add zwave_js/get_firmware_update_capabilties WS command
* Fix test
2022-06-19 14:50:47 -04:00
Raman Gupta
801ba6ff8e
Add target option to zwave_js firmware upload view ( #73690 )
2022-06-19 14:50:05 -04:00
Raman Gupta
9b93071720
Bump zwave-js-server-python to 0.38.0 ( #73707 )
...
* Bump zwave-js-server-python to 0.38.0
* Fix test
2022-06-19 20:12:01 +02:00
Álvaro Fernández Rojas
be6c2554dd
Add QNAP QSW DHCP discovery ( #73130 )
...
* qnap_qsw: add DHCP discovery
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* qnap_qsw: config_flow: add async_step_dhcp
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* qnap_qsw: config_flow: lower DHCP logging
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* tests: qnap_qsw: fix copy & paste
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* qnap_qsw: dhcp: introduce changes suggested by @bdraco
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* Update homeassistant/components/qnap_qsw/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* qnap_qsw: async_step_user: disable raising on progress
Allows async_step_user to win over a discovery.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-19 09:43:29 -05:00
G Johansson
68135e57af
Split timer service for Sensibo ( #73684 )
2022-06-19 09:28:33 -05:00
Christopher Bailey
b19b6ec6ea
Update UniFi Protect to use MAC address for unique ID ( #73508 )
2022-06-19 09:22:33 -05:00
Raman Gupta
7714183118
Add `zwave_js/subscribe_node_status` WS API cmd ( #73249 )
...
* Add zwave_js/subscribe_node_status WS API cmd
* add ready to event
2022-06-19 10:09:26 -04:00
G Johansson
d5df2b2ee7
Sensibo Add Pure Boost Service ( #73114 )
...
* Pure Boost Service
* Fix tests
* Fix mypy
* One service to two services
* Minor fix test
* Fix issues
2022-06-18 15:15:44 -05:00
G Johansson
046d7d2a23
Add tests for trafikverket_ferry ( #71912 )
2022-06-18 12:58:10 -05:00
Christopher Bailey
691d49f23b
Refactor migration code for UniFi Protect ( #73499 )
2022-06-18 12:56:28 -05:00
uvjustin
7a3f632c1d
Make stream recorder work concurrently ( #73478 )
2022-06-18 05:13:07 +10:00
J. Nick Koston
4bc5d7bfed
Speed up zha tests ( #73627 )
2022-06-17 11:41:10 -05:00
Steven Looman
bf15df75dd
Ignore fake upnp/IGD devices when upnp is discovered ( #73645 )
2022-06-17 11:26:45 -05:00
Erik Montnemery
baa810aabb
Improve warnings for datetime and date sensors with invalid states ( #73598 )
2022-06-17 12:17:13 +02:00
Allen Porter
ea21a36e52
Remove default use of google calendars yaml file in tests ( #73621 )
...
Remove default use of
google_calendars.yaml in tests
2022-06-17 09:04:41 +02:00
Michael
e30478457b
Fix voltage and current values for Fritz!DECT smart plugs ( #73608 )
...
fix voltage and current values
2022-06-17 07:40:02 +02:00
Dave T
cdd5a5f68b
Generic ipcam configflow2 followup ( #73511 )
...
* Address code review comments
* Add type hints
* Remvoe unused strings
* Remove persistent notification setup
* Patch async_configre
* Fix pylint warning
* Address review comments
* Clean types
* Code review: defer local var assignment
Co-authored-by: Dave T <davet2001@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-17 07:07:21 +02:00
uvjustin
01a4a83bab
Improve stream playback on high latency cameras ( #72547 )
...
* Disable LL-HLS for HLS sources
* Add extra wait for Nest cameras
2022-06-17 01:48:52 +10:00
Erik Montnemery
e2327622c3
Migrate SNMP sensor to TemplateEntity ( #73324 )
2022-06-16 15:02:50 +02:00
Erik Montnemery
dea8041461
Add device_class to MQTT number and migrate to native_value ( #73534 )
2022-06-16 13:34:54 +02:00
Maciej Bieniek
c2b484e38b
Use IP address instead of hostname in Brother integration ( #73556 )
2022-06-16 11:43:36 +02:00
Erik Montnemery
2d07cda4e7
Improve number deprecation warnings ( #73552 )
2022-06-16 09:05:13 +02:00
J. Nick Koston
af81ec1f5f
Handle offline generators in oncue ( #73568 )
...
Fixes #73565
2022-06-16 07:51:55 +02:00
Allen Porter
b014d558ff
Add application credentials platform for nest and deprecate yaml for SDM API ( #73050 )
...
* Update the nest integration to be useable fully from the config flow
* Support discovery in nest config flow
* Remove configuration entries
* Remove unused import
* Remove dead code
* Update homeassistant/components/nest/strings.json
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove commented out code
* Use config flow for app auth reauthentication path
* Improves for re-auth for upgrading existing project and creds
* More dead code removal
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Remove outdated code
* Update homeassistant/components/nest/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-15 07:15:53 -07:00
Erik Montnemery
8c0ae545c9
Migrate knx NumberEntity to native_value ( #73536 )
2022-06-15 14:39:56 +02:00
Thibaut
658ce9d4f2
Remove Somfy integration ( #73527 )
...
* Remove somfy
* Remove somfy
2022-06-15 12:18:15 +02:00
Franck Nijhof
05d7d31dfd
Improve Elgato error handling ( #73444 )
2022-06-15 12:12:07 +02:00
J. Nick Koston
16dd70ba99
Switch to a dataclass for lutron_caseta entry data ( #73500 )
2022-06-14 20:32:38 -10:00
J. Nick Koston
1e956bc52f
Reduce bond startup time ( #73506 )
2022-06-14 20:30:59 -10:00
Erik Montnemery
23fa19b75a
Support restoring NumberEntity native_value ( #73475 )
2022-06-14 10:56:27 -07:00
J. Nick Koston
9b157f974d
Reduce overhead to refire events from async_track_point_in_utc_time when an asyncio timer fires early ( #73295 )
...
* Reduce overhead to refire events
- asyncio timers can fire early for a varity of reasons including
poor clock resolution and performance. To solve this problem
we re-arm async_track_point_in_utc_time and try again later
when this happens.
- On some platforms this means the async_track_point_in_utc_time can
end up trying many times to prevent firing the timer early since as
soon as it rearms it fires again and this repeats until we reach
the appointed time. While there is not much we can do to prevent
asyncio from firing the timer callback early, we can reduce the
overhead when this happens by using avoiding creating datetime
objects
* tweak mocking
* -vvv
* fix time freeze being too broad in litterrobot
* adjust
2022-06-14 07:46:00 -10:00
Allen Porter
0b7a030bd4
Fix fan support in nest, removing FAN_ONLY which isn't supported ( #73422 )
...
* Fix fan support in nest, removing FAN_ONLY which isn't supported
* Revert change to make supported features dynamic
2022-06-14 06:19:22 -07:00
Erik Montnemery
3da3503673
Add temperature unit conversion support to NumberEntity ( #73233 )
...
* Add temperature unit conversion to number
* Remove type enforcements
* Lint
* Fix legacy unit_of_measurement
* Address review comments
* Fix unit_of_measurement, improve test coverage
2022-06-14 09:40:57 +02:00
Erik Montnemery
e3b6c7a66f
Add Home Assistant Yellow integration ( #73272 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-06-13 23:25:11 -07:00
J. Nick Koston
51b4d15c8c
Speed up mqtt tests ( #73423 )
...
Co-authored-by: jbouwh <jan@jbsoft.nl>
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2022-06-13 10:17:10 -10:00
J. Nick Koston
034c0c0593
Improve YAML Dump times with C Dumper ( #73424 )
2022-06-13 13:14:30 -07:00
G Johansson
c660fae8d8
Sensibo Add timer ( #73072 )
2022-06-13 09:17:08 -10:00
J. Nick Koston
dca4d3cd61
Significantly improve yaml load times when the C loader is available ( #73337 )
2022-06-13 08:44:46 -10:00
Jan Bouwhuis
657e7f9a4c
Simplify MQTT test for setup manual mqtt item from yaml ( #72916 )
...
simplify test setup manual mqtt item from yaml
2022-06-13 13:44:12 +02:00
Jan Bouwhuis
48e3d68b53
Clean up MQTT platform entry setup at discovery ( #72371 )
...
* Setup MQTT discovery with entry setup
* Wait for entry setup in test
* flake
2022-06-13 13:38:53 +02:00
Dave T
b261f0fb41
Use more specific exception and simplify aurora_abb_powerone ( #73338 )
...
* Use more specific exception for comms timeout
* Remove defered uniqueid assigner now yaml has gone
Co-authored-by: Dave T <davet2001@users.noreply.github.com>
2022-06-13 09:36:46 +02:00
J. Nick Koston
ad9e1fe166
Fix reload race in yeelight when updating the ip address ( #73390 )
2022-06-12 20:29:44 -07:00
Brandon Rothweiler
f85409b2ea
Remove deprecated services from Mazda integration ( #73403 )
2022-06-12 20:18:48 -07:00
J. Nick Koston
9159db4b4a
Only update unifiprotect ips from discovery when the console is offline ( #73411 )
2022-06-12 20:04:17 -07:00
Marcio Granzotto Rodrigues
5854dfa84f
Fix smart by bond detection with v3 firmware ( #73414 )
2022-06-12 15:27:18 -10:00
Raman Gupta
dc48791864
Add config flow to eight_sleep ( #71095 )
...
* Add config flow to eight_sleep
* simplify tests
* Remove extra file
* remove unused import
* fix redundant code
* Update homeassistant/components/eight_sleep/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* incorporate feedback
* Review comments
* remove typing from tests
* Fix based on changes
* Fix requirements
* Remove stale comment
* Fix tests
* Reverse the flow and force the config entry to reconnect
* Review comments
* Abort if import flow fails
* Split import and user logic
* Fix error
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-11 02:16:46 -04:00
Raman Gupta
63b51f566d
Fix zwave_js add node schemas ( #73343 )
...
* Fix zwave_js add node schemas
* Code cleanup
* Add test
2022-06-11 02:13:50 -04:00
uvjustin
b1f2e5f897
Use create_stream in generic camera config flow ( #73237 )
...
* Use create_stream in generic camera config flow
2022-06-11 15:38:43 +10:00
Nathan Spencer
21cfbe875e
Remove logic to mark litterrobot vacuum entity as unavailable ( #73234 )
2022-06-11 00:16:47 +03:00
J. Nick Koston
e4f354998d
Filter out forced updates in live logbook when the state has not changed ( #73335 )
2022-06-10 14:04:43 -07:00
Erik Montnemery
3d78240cee
Fix initial tilt value of MQTT cover ( #73308 )
2022-06-10 11:11:40 +02:00
J. Nick Koston
06ebc1fa14
Add support for async_remove_config_entry_device to august ( #72627 )
2022-06-10 09:53:42 +02:00
J. Nick Koston
f4d339119f
Cache which entities are exposed in emulated_hue ( #73093 )
2022-06-09 21:17:37 -10:00
Allen Porter
7a5fa8eb58
Update more nest tests to use common fixtures ( #73303 )
...
Update nest tests to use fixtures
2022-06-10 07:14:43 +02:00
J. Nick Koston
0505c596a5
Fix dropouts in history_stats graphs on restart ( #73110 )
2022-06-09 21:11:23 -07:00
J. Nick Koston
a9ab98fb45
Add power sensor to WiZ ( #73260 )
2022-06-09 18:10:15 -10:00
Khole
1dd7781acc
Hive auth fix for users ( #73247 )
2022-06-09 20:54:24 -07:00
J. Nick Koston
22daea27c2
Cleanup coordinators in synology_dsm ( #73257 )
...
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2022-06-09 10:22:16 -10:00
Erik Montnemery
82afbd1d12
Improve raspberry_pi tests ( #73269 )
...
* Improve raspberry_pi tests
* Address review comments
2022-06-09 16:12:10 +02:00
Erik Montnemery
542eae1cf3
Add additional board types to hassio ( #73267 )
...
* Add additional board types to hassio
* Remove unsupported boards
* Add rpi2 back
2022-06-09 16:09:00 +02:00
Allen Porter
91cd61804e
Deprecate google calendar add_event service, replaced with entity service ( #72473 )
...
* Deprecate google calendar add_event service, replaced with entity service
* Fix inconsistencies and bugs in input validation
* Update validation rules and exceptions
* Resolve merge conflicts
2022-06-09 16:08:08 +02:00
Rami Mosleh
a7398b8a73
Remove deprecated yaml and code cleanup for `nfandroidtv` ( #73227 )
2022-06-09 11:06:59 +02:00
Christopher Bailey
004ff8fb30
Overhaul UniFi Protect NVR Disk sensors ( #73197 )
...
* Overhauls NVR Disk sensors
* Updates from latest version of pyunifiprotect
2022-06-08 14:13:56 -10:00
Christopher Bailey
4c45cb5c52
Add UniFi Protect chime button/camera switch ( #73195 )
2022-06-08 12:29:46 -10:00
Erik Montnemery
4435c641de
Enforce RegistryEntryHider in entity registry ( #73219 )
2022-06-08 12:36:43 -07:00
d0nni3q84
f7bd88c952
Fix Feedreader Atom feeds using `updated` date ( #73208 )
...
* Feedreader: Properly support Atom feeds that use only the `updated` date format and resolve #73207 .
* Revert "Feedreader: Properly support Atom feeds that use only the `updated` date format and resolve #73207."
This reverts commit 4dbd11ee04
.
* Properly support Atom feeds that use only the `updated` date format and resolve #73207 .
* Revert "Properly support Atom feeds that use only the `updated` date format and resolve #73207."
This reverts commit 14366c6a24
.
* Properly support Atom feeds that use only the `updated` date format and resolve #73207 .
2022-06-08 20:32:01 +02:00
Allen Porter
e74c711ef3
Add application credentials description strings ( #73014 )
2022-06-08 07:09:32 -07:00
Erik Montnemery
5987266e56
Refactor template entity to allow reuse ( #72753 )
...
* Refactor template entity to allow reuse
* Fix schema and default name
* Add tests
* Update requirements
* Improve test
* Tweak TemplateSensor initializer
* Drop attributes and availability from TemplateEntity
* Use rest sensor for proof of concept
* Revert changes in SNMP sensor
* Don't set _attr_should_poll in mixin class
* Update requirements
2022-06-08 15:55:49 +02:00
J. Nick Koston
329595bf73
Make radiotherm hold mode a switch ( #73104 )
2022-06-07 14:26:06 -10:00
J. Nick Koston
7ae8bd5137
Remove sqlalchemy lambda_stmt usage from history, logbook, and statistics ( #73191 )
2022-06-07 16:15:50 -07:00
Michael
8c34067f17
Fix creating unique IDs for WiFi switches in Fritz!Tools ( #73183 )
2022-06-07 16:11:38 -07:00
Christopher Bailey
1bc9867940
Bump version of pyunifiprotect to 3.9.0 ( #73168 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 08:19:39 -10:00
Maciej Bieniek
0b5c0f8249
Bump `nam` backend library ( #72771 )
...
* Update config flow
* Fix discovery with auth
* Call check_credentials() on init
* Update tests
* Bump library version
* Cleaning
* Return dataclass instead of tuple
* Fix pylint error
2022-06-07 06:56:11 -10:00
David F. Mulcahey
a5dc7c5f28
Add logbook describe event support to ZHA ( #73077 )
2022-06-07 06:49:40 -10:00
uvjustin
73f2bca377
Make Stream.stop() async ( #73107 )
...
* Make Stream.start() async
* Stop streams concurrently on shutdown
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-08 00:10:53 +08:00
Maciej Bieniek
c6b835dd91
Add missing `state_class` to min_max sensors ( #73169 )
...
Add missing state_class
2022-06-07 17:02:12 +02:00
Erik Montnemery
5f2b4001f3
Separate recorder database schema from other classes ( #72977 )
...
* Separate recorder database schema from other classes
* fix logbook imports
* migrate new tests
* few more
* last one
* fix merge
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 14:41:43 +02:00
BigMoby
0c21bf7c25
Remove iAlarm XR integration ( #73083 )
...
* fixing after MartinHjelmare review
* fixing after MartinHjelmare review conversion alarm state to hass state
* fixing after MartinHjelmare review conversion alarm state to hass state
* manage the status in the alarm control
* simplyfing return function
* Removing iAlarm XR integration because of Antifurto365 explicit request to remove after some issues in their cloud service
2022-06-06 22:23:10 -07:00
J. Nick Koston
de2e9b6d77
Fix state_changes_during_period history query when no entities are passed ( #73139 )
2022-06-06 12:50:52 -07:00
J. Nick Koston
0b62944148
Mark counter domain as continuous to exclude it from logbook ( #73101 )
2022-06-05 21:25:26 -10:00
J. Nick Koston
457c7a4ddc
Fix incompatiblity with live logbook and google_assistant ( #73063 )
2022-06-05 19:06:49 -10:00
G Johansson
7536586bed
Add binary sensors for Pure devices Boost Config ( #73032 )
2022-06-05 18:58:48 -10:00
J. Nick Koston
6b2e5858b3
Send an empty logbook response when all requested entity_ids are filtered away ( #73046 )
2022-06-05 21:14:47 -07:00
J. Nick Koston
c66b000d34
Reduce branching in generated lambda_stmts ( #73042 )
2022-06-05 21:13:31 -07:00
hesselonline
9ea504dd7b
Bump wallbox to 0.4.9 ( #72978 )
2022-06-05 15:31:09 -10:00
J. Nick Koston
cac84e4160
Add config flow to radiotherm ( #72874 )
2022-06-05 13:59:52 -10:00
Robert Hillis
a502a8798f
Add config flow to skybell ( #70887 )
2022-06-04 16:37:08 -10:00
G Johansson
a1b372e4ca
Minor fixes Trafikverket Train ( #72996 )
...
* Minor fixes Trafikverket Train
* Remove ConfigEntryAuthFailed
2022-06-04 12:37:39 +02:00
Allen Porter
9d933e732b
Remove google scan_for_calendars service and simplify platform setup ( #73010 )
...
* Remove google scan_for_calendars service and simplify platform setup
* Update invalid calendar yaml test
2022-06-03 21:56:53 -07:00
Allen Porter
bdc41bf22a
Fix google calendar bug where expired tokens are not refreshed ( #72994 )
2022-06-03 16:33:12 -07:00
J. Nick Koston
8e8fa0399e
Fix statistics_during_period being incorrectly cached ( #72947 )
2022-06-03 13:04:46 -07:00
G Johansson
8d0dd1fe8c
Config flow for scrape integration ( #70476 )
2022-06-03 09:24:04 -10:00
G Johansson
5ee2f4f438
Sensibo Set temperature improvement ( #72992 )
2022-06-03 09:11:57 -10:00
starkillerOG
6cadd4f665
MotionBlinds use device_name helper ( #72438 )
...
* use device_name helper
* fix typo
* fix import
* fix isort
* add gateway_test
* implement gateway test
* correct test blind mac
2022-06-03 15:33:43 +02:00
w35l3y
beab6e2e5f
Fix ended session when there isn't any response from the user ( #72218 )
...
* Fix end session when there isn't any response
This PR fixes #72153
* Added test case as requested
https://github.com/home-assistant/core/pull/72218#discussion_r881584812
2022-06-03 15:32:22 +02:00
Allen Porter
3a8a816584
Cleanup nest config flow tests to use common setup fixtures ( #72878 )
...
* Cleanup nest config flow tests to use common setup
* Remove some conditionals in test setup
2022-06-02 21:42:52 -07:00
J. Nick Koston
5b31414225
Fix misalignments between sql based filtering with the entityfilter based filtering ( #72936 )
2022-06-02 20:52:53 -07:00
Khole
a4c3585448
Fix Hive authentication ( #72929 )
2022-06-02 14:54:26 -07:00
Erik Montnemery
b97d346df7
Fix reload of MQTT yaml config ( #72901 )
2022-06-02 11:32:31 -07:00
J. Nick Koston
d3b1896a06
Only present history_stats state as unknown if the time is in the future ( #72880 )
2022-06-02 08:39:53 -07:00
J. Nick Koston
f1a31d8d33
Add support for async_remove_config_entry_device to unifiprotect ( #72742 )
...
* Add support for async_remove_config_entry_device to unifiprotect
* tweaks
* tweaks
* more cleanups
* more cleanups
* fix unhelpful auto import
* add coverage
* fix mac formatting
* collapse logic
2022-06-02 08:26:08 -07:00
Matrix
9192d0e972
Bump yolink-api to 0.0.6 ( #72903 )
...
* Bump yolink-api to 0.0.6
* update testcase
2022-06-02 17:21:22 +02:00
Jan Bouwhuis
52561ce076
Update MQTT tests to use the config entry setup ( #72373 )
...
* New testframework and tests for fan platform
* Merge test_common_new to test_common
* Add alarm_control_panel
* Add binary_sensor
* Add button
* Add camera
* Add climate
* Add config_flow
* Add cover
* Add device_tracker_disovery
* Add device_trigger
* Add diagnostics
* Add discovery
* Add humidifier
* Add init
* Add lecacy_vacuum
* Add light_json
* Add light_template
* Add light
* Add lock
* Add number
* Add scene
* Add select
* Add sensor
* Add siren
* Add state_vacuum
* Add subscription
* Add switch
* Add tag
* Add trigger
* Add missed tests
* Add another missed test
* Add device_tracker
* Remove commented out code
* Correct tests according comments
* Improve mqtt_mock_entry and recover tests
* Split fixtures with and without yaml setup
* Update fixtures manual_mqtt
* Update fixtures mqtt_json
* Fix test tasmota
* Update fixture mqtt_room
* Revert fixture changes, improve test
* re-add test
2022-06-02 14:24:46 +02:00
Guido Schmitz
219200b340
Fix test_hass_stop in devolo Home Network ( #72833 )
...
Fix test_hass_stop
2022-06-02 13:59:29 +02:00
Marc Mueller
62a5854e40
Fix bare except ( #72906 )
2022-06-02 13:58:04 +02:00
Raman Gupta
6ccaf33bdf
Attempt to fix flaky tomorrowio test ( #72890 )
...
* Fix flaky tomorrowio test
* reset mock outside context manager
* add to hass outside of context manager
2022-06-02 03:16:00 -04:00
J. Nick Koston
f79e5e002b
Ensure recorder shuts down when its startup future is canceled out from under it ( #72866 )
2022-06-01 22:13:09 -07:00
J. Nick Koston
c6e56c26b3
Fix logbook not setting up with an recorder filter that has empty fields ( #72869 )
2022-06-01 22:12:00 -07:00
Aidan Timson
2ba45a9f99
System Bridge 3.x.x ( #71218 )
...
* Change to new package and tcp
* Rework integration pt1
* Show by default
* Handle auth error
* Use const
* New version avaliable (to be replaced in future by update entity)
* Remove visible
* Version latest
* Filesystem space use
* Dev package
* Fix sensor
* Add services
* Update package
* Add temperature and voltage
* GPU
* Bump package version
* Update config flow
* Add displays
* Fix displays connected
* Round to whole number
* GPU fan speed in RPM
* Handle disconnections
* Update package
* Fix
* Update tests
* Handle more errors
* Check submodule and return missing uuid in test
* Handle auth error on config flow
* Fix test
* Bump package version
* Handle key errors
* Update package to release version
* Client session in config flow
* Log
* Increase timeout and use similar logic in config flow to init
* 30 secs
* Add test for timeout error
* Cleanup logs
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/system_bridge/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* uuid raise specific error
* Type
* Lambda to functions for complex logic
* Unknown error test
* Bump package to 3.0.5
* Bump package to 3.0.6
* Use typings from package and pydantic
* Use dict()
* Use data listener function and map to models
* Use passed module handler
* Use lists from models
* Update to 3.1.0
* Update coordinator to use passed module
* Improve coordinator
* Add debug
* Bump package and avaliable -> available
* Add version check
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-06-01 23:54:22 +02:00
Rami Mosleh
74e2d5c5c3
Remove deprecated YAML for `transmission` ( #72832 )
2022-06-01 17:25:49 +02:00
J. Nick Koston
5d2326386d
Fix logbook spinner never disappearing when all entities are filtered ( #72816 )
2022-06-01 12:33:46 +02:00
J. Nick Koston
d8b0376942
Fix purge of legacy database events that are not state changed ( #72815 )
2022-06-01 11:56:06 +02:00
epenet
1aeba8a9bd
Use Mapping for async_step_reauth in discord ( #72812 )
...
* Fix tests
* Cleanup code accordingly
2022-06-01 09:44:22 +02:00
Erik Montnemery
9ac0c5907f
Add test for mikrotik device tracker with numerical device name ( #72808 )
...
Add mikrotik test for numerical device name
2022-06-01 09:39:56 +02:00
epenet
a6db25219d
Use Mapping for async_step_reauth in motioneye ( #72769 )
2022-06-01 06:58:29 +02:00
Raman Gupta
394442e8a9
Use device_id for zwave_js/replace_failed_node command ( #72785 )
2022-06-01 06:42:07 +02:00
Erik Montnemery
44f332ed5f
Improve cast HLS detection ( #72787 )
2022-05-31 20:35:56 -07:00
Michael
3258d572b0
Add re-auth flow to Tankerkoenig ( #72682 )
...
* add reauth flow
* add test
* use Mapping for async_step_reauth arguments
* only update changed data
* improve tests
* use different api key to test reauth
2022-05-31 23:46:12 +02:00
J. Nick Koston
c365454afb
Revert "Initial orjson support ( #72754 )" ( #72789 )
...
This was causing the wheels to fail to build. We need
to workout why when we don't have release pressure
This reverts commit d9d22a9556
.
2022-05-31 13:51:55 -07:00
J. Nick Koston
35ee4ad55b
Prevent live logbook from sending state changed events when we only want device ids ( #72780 )
2022-05-31 13:08:04 -07:00