Commit graph

60591 commits

Author SHA1 Message Date
Aaron Godfrey
745df277a0
Fix Todoist end date for all day event () 2023-03-26 22:08:36 +02:00
J. Nick Koston
8c9966aa05
Ensure esphome subscribes to bluetooth connection free before accepting connect requests () 2023-03-26 22:06:14 +02:00
Franck Nijhof
916b274ec8
Update pipdeptree to 2.7.0 () 2023-03-26 09:47:47 -10:00
Igor Santos
94cc188885
[Issue template] Point to health page for version info () 2023-03-26 21:37:24 +02:00
Michael
45262c6114
Implement config flow for nextcloud ()
* 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 () 2023-03-26 09:10:35 -10:00
Alexey Baturin
89355e0879
Add WLED IP as a sensor ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-26 20:03:03 +02:00
epenet
c075dac916
Fix pylint plugin for tuple[float, float] returns () 2023-03-26 19:54:21 +02:00
epenet
3b83340f6e
Improve get_browse_image type hints in media player () 2023-03-26 19:54:01 +02:00
epenet
3058cc8d56
Adjust targets type hint in notify platform () 2023-03-26 19:52:55 +02:00
epenet
a036e31495
Use SnapshotAssertion in gree switch tests () 2023-03-26 19:51:48 +02:00
Niels Perfors
1baadc1d09
Update Verisure package to 2.6.1 ()
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
epenet
6e92dac61f
Adjust pylint plugin for return type inheritance () 2023-03-26 18:37:26 +02:00
rikroe
bec7bbeb92
Use SnapshotAssertion in bmw_connected_drive tests () 2023-03-26 16:57:19 +02:00
epenet
69a46d4002
Adjust pylint plugin for components fixtures ()
* Adjust pylint plugin for components fixtures

* Adjust components

* Use MagicMock

* Adjust

* Use None
2023-03-26 15:21:19 +02:00
epenet
e0ec3488d3
Adjust IntFlag handling in syrupy () 2023-03-26 14:20:05 +02:00
J. Nick Koston
f8431278c8
Bump yalexs-ble to 2.1.6 () 2023-03-26 11:05:21 +02:00
Robert Svensson
a0b6da33ab
Strict typing of UniFi integration ()
* 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 ()
Depr yaml import
2023-03-26 09:42:38 +02:00
G Johansson
b3f3f234c6
Remove pushbullet platform yaml import ()
Depr pushbullet yaml
2023-03-26 09:40:07 +02:00
Felix Rotthowe
40131d811c
Handle Livisi TokenExpiredException ()
* 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 ()
* 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 

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 ()
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 ()
Co-authored-by: Charles Garwood <cgarwood@newdealmultimedia.com>
2023-03-25 16:29:26 -10:00
G Johansson
53726cb4a1
Remove Magicseaweed () 2023-03-25 22:02:10 -04:00
J. Nick Koston
255f12ec05
Bump bleak-retry-connector to 3.0.2 ()
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 ()
* 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
G Johansson
7f6406127e
Remove platform yaml radiotherm () 2023-03-25 12:43:44 -10:00
G Johansson
89d00ac733
Fix default ipv6 resolver () 2023-03-25 12:31:01 -10:00
Franck Nijhof
5c839e2367
Add entity name translations to Elgato () 2023-03-25 23:06:03 +01:00
J. Nick Koston
668b2726fe
Bump yalexs-ble to 2.1.4 () 2023-03-25 10:12:48 -10:00
J. Nick Koston
fd460996ba
Bump onvif-zeep-async to 1.2.2 to fix memory leak () 2023-03-25 09:21:05 -10:00
rikroe
cc337c4ff6
Add Re-Auth to bmw_connected_drive ()
* Add Re-Auth to bmw_connected_drive

* Always store refresh token to entry

* Fix tests

* Typo

---------

Co-authored-by: rikroe <rikroe@users.noreply.github.com>
2023-03-25 10:09:33 -07:00
J. Nick Koston
7bceedfc95
Bump sqlalchemy to 2.0.7 () 2023-03-25 07:05:35 -10:00
Franck Nijhof
7cbe705ebb
Update vehicle to 1.0.0 () 2023-03-25 18:00:15 +01:00
Luca Angemi
6d8eaa0bee
Add location field to calendar create_event service supported by Google Calendar and Local Calendar ()
* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update calendar.py

* Update calendar.py

* Update services.yaml

* Update services.yaml

* Update calendar.py

* Update calendar.py

* Update __init__.py

* Update services.yaml

* Update services.yaml

* Update test_calendar.py

* Update test_init.py

* Update test_init.py

* Update test_init.py

* Update test_init.py

* Update __init__.py

* Update const.py

* Address changes to service.yaml

* Address changes to service.yaml

* Update test_calendar.py

* Update test_calendar.py

* Update test_calendar.py

* Update conftest.py

* Update conftest.py

* Update calendar.py

* Update __init__.py
2023-03-25 09:43:49 -07:00
J. Nick Koston
02ef7d445d
Allow passing an optional name to async_track_time_interval ()
* Allow passing an optional name to async_track_time_interval

This is the same idea as passing a name to asyncio.create_task which
makes it easier to track down bugs

* more

* short

* still cannot find it

* add a few more

* test
2023-03-25 10:11:14 -04:00
Matthias Alphart
52a94dd2ac
Check for empty lists in KNX address configuration () 2023-03-24 21:36:23 -11:00
Jeef
970036b328
Refactor Gree switch to use EntityDescription ()
* Post-rebase

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* feat: Tests passing!

* Removing custom attributes as no longer needed

* removed extraneous class

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update homeassistant/components/gree/switch.py

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

* Update tests/components/gree/test_switch.py

Co-authored-by: solazs <soltesz.balazs.91@gmail.com>

* Update tests/components/gree/test_switch.py

Co-authored-by: solazs <soltesz.balazs.91@gmail.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: solazs <soltesz.balazs.91@gmail.com>
2023-03-25 09:15:46 +01:00
epenet
f56bf134d2
Improve browse_media type hints in media player ()
* Improve browse_media type hints in media player

* Adjust components

* Adjust base entity
2023-03-24 21:49:12 -07:00
epenet
5f3868b141
Add missing type hints to tests ()
* Add type hints to tests

* Revert gree as handled in 
2023-03-24 19:34:01 -07:00
Robert Svensson
7f1fff12ef
Bump aiounifi to v45 ()
* Bump aiounifi to v45

* Replace local TypeVar with library TypeVar
2023-03-25 00:27:16 +01:00
J. Nick Koston
e17cefd61c
Clear recorder startup tasks from memory after processing ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-03-24 10:24:02 -10:00
J. Nick Koston
8e07b71644
Use the json load helper in a few more incoming web requests ()
* Use the json load helper in a few more incoming web requests

* drop hassio change as there is no coverage there

* Remove everything except emulated_hue since its has its own site/web
2023-03-24 15:38:08 -04:00
J. Nick Koston
72b09bfee7
Subclass aiohttp requests to use json helper ()
* Subclass aiohttp requests to use json helper

* Subclass aiohttp requests to use json helper

* remove unneeded

* revert for new pr

* override loads is never used so drop it

* override loads is never used so drop it
2023-03-24 15:37:43 -04:00
Felix Rotthowe
0bb0b4bfc5
Add livisi window sensor (WDS) ()
* Added support for livisi window sensor

* Add const strings

* added postpix for device_id

* Remove unnecessary import

* Fix imports

* Fix lint errors, remove redundant device class property

* Format code

* Update .coveragerc

* Finish basic window door sensor support

* currently, only one binary sensor (wds) is supported

* Remove unused imports

* Fix isort issue

* Simplify code as suggested in PR

* rename get_device_response to get_device_state

* fix ruff issue

* Be more defensive in interpreting what we get from aiolivisi

* Simplify coordinator

* remove window sensor specific code (isOpen)

* parameter order, type hinta

* Update homeassistant/components/livisi/coordinator.py

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

* Update homeassistant/components/livisi/coordinator.py

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

* Update homeassistant/components/livisi/coordinator.py

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

* Update homeassistant/components/livisi/binary_sensor.py

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

* Update homeassistant/components/livisi/binary_sensor.py

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

* Update homeassistant/components/livisi/binary_sensor.py

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

---------

Co-authored-by: Tecotix <78791840+Tecotix@users.noreply.github.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-24 14:52:50 +01:00
J. Nick Koston
4c45c3c63b
Add a faster query for get_last_state_changes when the number of states is 1 ()
* Add a faster query for get_last_state_changes when the number of states is 1

related issue 

* Add a faster query for get_last_state_changes when the number of states is 1

related issue 

* coverage

* Apply suggestions from code review
2023-03-24 09:39:55 -04:00
Chris Xiao
8149652f9f
Move qbittorrent constants to const.py ()
* move qbittorrent constants to const.py

* move SENSOR_TYPE_* consts back to sensors.py
2023-03-24 14:20:37 +01:00
dependabot[bot]
a66bef6fdf
Bump actions/checkout from 3.4.0 to 3.5.0 ()
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 13:55:17 +01:00
Felix Rotthowe
3157579992
Remove duplicate code in livisi coordinator ()
* Simplify coordinator

* remove window sensor specific code (isOpen)

* parameter order, type hinta

* Update homeassistant/components/livisi/coordinator.py

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

* Update homeassistant/components/livisi/coordinator.py

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

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-24 12:59:59 +01:00