jjlawren
897dd012cd
Handle transport errors when updating media via events ( #50481 )
2021-05-11 16:00:56 -05:00
Simone Chemelli
d877c0c1ff
Add Fritz services ( #50056 )
2021-05-11 15:56:52 -05:00
Pascal Vizeli
214fd41bb6
Add fail-fast for wheel ( #50487 )
2021-05-11 22:18:18 +02:00
J. Nick Koston
34c84a6bbb
Reduce boilerplate to abort for matching config entries ( #50186 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2021-05-11 22:00:12 +02:00
jjlawren
d6a202bd74
Move core Sonos functionality out of entities ( #50277 )
2021-05-11 10:36:40 -07:00
J. Nick Koston
0fdc50408a
Remove unused ignore in fritz ( #50469 )
2021-05-11 19:08:13 +02:00
J. Nick Koston
909a20b36d
Use async zeroconf registration functions ( #50168 )
2021-05-11 11:03:36 -05:00
Simone Chemelli
e616583bad
Improve types for Fritz ( #50327 )
...
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com >
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com >
2021-05-11 10:41:27 -05:00
epenet
d6c99a3db9
Enable strict type checks for onewire ( #50422 )
2021-05-11 17:28:17 +02:00
Paul Ganssle
efa5c59559
Replace hand-rolled binary search with bisect_left ( #50410 )
...
The `bisect` module exposes a `bisect_left` function which does
basically what the bulk of `_lower_bound` does. From my tests, it is
slightly faster (~5%) in the probably common ideal case where `arr` is short.
In the worst case scenario, `bisect.bisect_left` is *much* faster.
```
>>> arr = list(range(60))
>>> cmp = 59
>>> %timeit _lower_bound(arr, cmp)
736 ns ± 6.24 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
>>> %timeit bisect_lower_bound(arr, cmp)
290 ns ± 7.77 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
```
I doubt this is a huge bottleneck or anything, but I think it's a bit
more readable, and it's more efficient, so it seems like it's mostly a
win.
This commit *will* add a new unconditional import for `bisect` when
importing `util.dt`, and `bisect` is not currently imported for any of
the standard library modules. It is possible to make this conditional by
placing `import bisect` in the _lower_bound function, or in the function
it's nested in.
2021-05-11 08:18:20 -07:00
Maciej Bieniek
f5541a468e
Improve type annotations for GIOS integration ( #50454 )
2021-05-11 07:57:24 -07:00
Martin Hjelmare
7c4893cbb1
Fix event action return value typing ( #50353 )
...
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com >
2021-05-11 16:23:59 +02:00
Martin Hjelmare
f71eb4d34d
Clean somfy config flow tests ( #50461 )
2021-05-11 16:19:07 +02:00
Simone Chemelli
4e24640ff7
Remove pytest-mock dependency ( #50400 )
2021-05-11 17:17:00 +03:00
Daniel Hjelseth Høyer
ca65cdd450
pyTibber revert ( #50462 )
...
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net >
2021-05-11 16:14:32 +02:00
Martin Hjelmare
48b5ef0bac
Clean twentemilieu config flow tests ( #50460 )
2021-05-11 15:53:36 +02:00
Ruslan Sayfutdinov
1538271555
Don't generate mypy.ini if errors are found ( #50456 )
2021-05-11 14:29:14 +02:00
Joakim Sørensen
236f138ab7
Fix compare syntax ( #50451 )
2021-05-11 13:23:56 +02:00
Pawel
bc9f0caf4a
Add configuration.yaml deprecation warning to Epson ( #50403 )
...
* add deprecation warning
* Break long string
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2021-05-11 12:45:03 +02:00
Joakim Sørensen
50a88eb6c0
Use empty requirements_diff for schedule and workflow_dispatch ( #50450 )
2021-05-11 12:29:13 +02:00
Joakim Sørensen
ef67a2659e
Add ignore_diff to workflow_dispatch trigger ( #50449 )
2021-05-11 12:15:57 +02:00
Joakim Sørensen
d6dcf95235
Fix .env_file name ( #50447 )
2021-05-11 11:54:02 +02:00
Joakim Sørensen
56d1e0a99d
Migrate wheels builder to GitHub actions ( #50445 )
2021-05-11 11:46:51 +02:00
Erik Montnemery
973f59e423
Refactor history component ( #50287 )
...
* Refactor history component
* Update tests
* Address review comments
* Correct deprecated functions
2021-05-11 09:21:57 +02:00
J. Nick Koston
d5e39e8748
Remove redundant names from config flow titles ( #50380 )
2021-05-10 22:14:33 -07:00
Ville Skyttä
44a790ab47
Entity.device_info typing fixes ( #49974 )
2021-05-10 22:11:51 -07:00
J. Nick Koston
34320ef617
Include mac address in rainmachine device info ( #50438 )
2021-05-10 22:06:49 -07:00
J. Nick Koston
d4cdb8e7e8
Include mac address in roomba device info when available ( #50437 )
2021-05-10 22:06:29 -07:00
J. Nick Koston
b36c840909
Add dhcp support to guardian ( #50378 )
2021-05-10 21:26:15 -05:00
HomeAssistant Azure
887ec2d9b5
[ci skip] Translation update
2021-05-11 00:04:41 +00:00
Ruslan Sayfutdinov
ce15f28642
Add missing type hints in http component ( #50411 )
2021-05-10 14:30:47 -07:00
Paulus Schoutsen
5aaead54da
Merge pull request #50417 from home-assistant/rc
2021.5.2
2021-05-10 13:58:00 -07:00
indykoning
85f758380a
Add Growatt Server Config flow ( #41303 )
...
* Growatt Server Config flow
* Use reference strings
Co-authored-by: SNoof85 <snoof85@gmail.com >
* Remove configuration.yaml import logic
* Removed import test
* Re-added PLATFORM_SCHEMA validation
* Import yaml from old yaml configuration
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Feedback
* Use Executor for IO only
* Fix imports
* update requirements
* Fix flake8
* Run every section of fetching devices in single executor
* Config flow feedback
* Clean up
* Fix plan step
* Fix config flow test
* Remove duplicate test
* Test import step
* Test already configured entry
* Clean up tests
* Add asserts
* Mock out entry setup
* Add warning if set up via yaml
Co-authored-by: SNoof85 <snoof85@gmail.com >
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2021-05-10 22:46:50 +02:00
Tobias Sauerwein
12342437e2
Fix battery attribute ( #50405 )
2021-05-10 20:40:44 +02:00
Khole
84984b0223
Bump Pyhiveapi ( #50368 )
2021-05-10 20:38:35 +02:00
kennedyshead
baacf1b787
Bumps aioasuswrt to 1.3.4 ( #50414 )
2021-05-10 20:35:32 +02:00
Paulus Schoutsen
88574034b7
Bumped version to 2021.5.2
2021-05-10 10:50:07 -07:00
jjlawren
a670156352
Bump pysonos to 0.0.45 ( #50407 )
2021-05-10 10:49:59 -07:00
jjlawren
6f9c21e1c0
Fix location of current_play_mode ( #50386 )
2021-05-10 10:49:58 -07:00
Alan Tse
51c78e0085
Increase httpx timeout for Tesla ( #50376 )
2021-05-10 10:49:58 -07:00
Erik Montnemery
0dd247aed0
Bump hatasmota to 0.2.12 ( #50372 )
2021-05-10 10:49:57 -07:00
Jeff Irion
420161039e
Bump androidtv to 0.0.59 ( #50367 )
2021-05-10 10:49:56 -07:00
Colin Robbins
0ce3bf0859
Support multiple disks in systemmonitor ( #50362 )
...
* Fix #50158 - add support for multiple disks
* Rework as a tuple
2021-05-10 10:49:55 -07:00
Brian Rogers
3362ac24f6
Revert Rachio to seconds instead of total_seconds ( #50307 )
...
* revert seconds
* Add comment
* Update comment to include max runtime
2021-05-10 10:49:54 -07:00
Franck Nijhof
e35fbde5fb
Fix ESPHome timestamp sensor ( #50305 )
2021-05-10 10:49:54 -07:00
J. Nick Koston
03b786268e
Fix tplink unloading when no switches are present ( #50301 )
2021-05-10 10:49:53 -07:00
Joakim Plate
7acefbefb3
Bump ha-philipsjs to 2.7.3 ( #50293 )
2021-05-10 10:49:52 -07:00
Oliver
0a1439d16b
Update denonavr to version 0.10.7 ( #50288 )
2021-05-10 10:49:51 -07:00
Aidan Timson
989cee662d
Update ovoenergy to 1.1.12 ( #50268 )
2021-05-10 10:49:51 -07:00
jjlawren
2d3b8fb329
Fix Sonos polling bug ( #50265 )
2021-05-10 10:49:50 -07:00