Michael
00ce757051
Apply late review comments from #89396 in Nextcloud ( #90327 )
2023-03-27 00:10:57 +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
G Johansson
53726cb4a1
Remove Magicseaweed ( #90277 )
2023-03-25 22:02:10 -04:00
Felix Rotthowe
0bb0b4bfc5
Add livisi window sensor (WDS) ( #90220 )
...
* 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
puddly
c581116c82
ZHA network settings API ( #88564 )
...
* Rename `zha.api` to `zha.websocket_api`
* Implement a ZHA network settings API
* Use the enum name as the radio type
* Don't filter out ignored config entries
* [WIP] Start unit tests
* Add unit tests
* Rename ZHA websocket API module in `.coveragerc`
* Rename `api` to `websocket_api`
* Increase test coverage to 100%
2023-03-22 11:15:46 -04:00
MarkGodwin
41b4c5532d
Add Update entities to TP-Link Omada integration ( #89562 )
...
* Bump tplink-omada
* Add omada firmware updates
* Excluded from code coverage
* Fixed entity name
2023-03-12 21:26:34 -04:00
Thijs W
b8bda93d87
Add config flow to frontier_silicon ( #64365 )
...
* Add config_flow to frontier_silicon
* Add missing translation file
* Delay unique_id validation until radio_id can be determined
* Fix tests
* Improve tests
* Use FlowResultType
* Bump afsapi to 0.2.6
* Fix requirements_test_all.txt
* Stash ssdp, reauth and unignore flows for now
* Re-introduce SSDP flow
* hassfest changes
* Address review comments
* Small style update
* Fix tests
* Update integrations.json
* fix order in manifest.json
* fix black errors
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Address review comments
* fix black errors
* Use async_setup_platform instead of async_setup
* Address review comments on tests
* parameterize tests
* Remove discovery component changes from this PR
* Address review comments
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Add extra asserts to tests
* Restructure _async_step_device_config_if_needed
* Add return statement
* Update homeassistant/components/frontier_silicon/media_player.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-10 10:26:03 +01:00
starkillerOG
2d3c5cf8ee
Reolink test init 100% ( #89112 )
...
* Split out reolink tests
* Bring __init__ coverage to 100%
* Improve docstrings
* Use patching and autospec=True for ReolinkHost
* Use fixture
* fix styling
* Parametrize tests
* Update tests/components/reolink/conftest.py
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
* Update test_config_flow.py
* convert to fixture
* review comments
* Update tests/components/reolink/conftest.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/reolink/conftest.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/reolink/conftest.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* fix tests
* fix imports
* Update test_init.py
* Check if host is logout on reload
---------
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-07 20:29:38 +01:00
starkillerOG
76cc4c9c08
Add Reolink light platform ( #88619 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-03-06 12:48:36 +01:00
starkillerOG
b14c5046e2
Reolink add select platform ( #87946 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-05 23:43:58 +01:00
starkillerOG
c792631f15
Add Reolink siren platform ( #88217 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-03-05 21:21:22 +01:00
starkillerOG
b2c9208dd0
Reolink add switch platform ( #87943 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-03-05 21:00:51 +01:00
starkillerOG
39db0ef173
Add Reolink button platform ( #88687 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-03-05 13:01:10 +01:00
Felix Rotthowe
3a34f818e8
Refactor Livisi Switch and Climate to inherit from a common base class ( #89085 )
...
* Refactor Livisi entities to inherit from a common base class
* Add livisi_entity to .coveragerc
* Device location can be None
* Add use_room_as_device_name argument to constructor of LivisiEntity
When initializing, set entity name attribute only if device name differs (i.e. use_room_as_device_name=True).
* re-add comment for special handling of climate device names
* Add explicit type to constructur argument
* Make use_room_as_device_name a keyword only arg
* rename livisi_entity.py to entity.py
* change livisi_entity.py to entity.py in coveragerc
* Code quality improvements as suggested in PR
* sort .coveragerc
* fix isort issue
* fix all isort issues
2023-03-03 15:23:38 +01:00
Emory Penney
1cb1dfa456
Add Obihai reboot button ( #88849 )
...
* Obihai: Add reboot service
* Switch to button
* Remove button.py from coverage
* Update homeassistant/components/obihai/const.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/obihai/button.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/obihai/button.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* PR Feedback
* Cleanup some typehints
* As a class attr
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-03 07:31:56 +01:00
Stephan Uhle
adb0455bd2
Add config flow to EDL21 ( #87655 )
...
* Added config_flow for edl21.
* Added already_configured check.
* Added config_flow test
* Added setup of the edl21 from configuration.yaml
* Ran script.gen_requirements_all
* Removed the generated translation file.
* Added a deprecation warning when importing from configuration.yaml.
* Readded the platform schema.
* Added handling of optional name for legacy configuration.
* Fixed handling of default value in legacy configuration.
* Added duplication check entries created via legacy config.
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Apply suggestions from code review
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-01 21:19:20 +01:00
Emory Penney
137d2f0d73
Obihai config flow fixes ( #88853 )
...
* Commit split issue
* Clearer name
* Add yaml_failure test case
* Not sure why this is failing now
* Update homeassistant/components/obihai/strings.json
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* PR Feedback
* Update homeassistant/components/obihai/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-01 16:33:32 +01:00
Chuck Deal
09d0128601
Add diagnostics to VeSync ( #86350 )
...
* Add diagnostics to VeSync
* Create unit tests for diagnostics and init
* Improved diagnostic test coverage
* Peer review fixes
* Fixed Peer Review comments
* Updated based on Peer Review
* Additional diagnostic redactions
* Removed account_id from diagnostic output
2023-02-28 22:12:48 -05:00
Emory Penney
0e8d28dab0
Add Config Flow to Obihai ( #88627 )
...
* Obihai: Config Flow Only
* Remove reboot service
* Update .coveragerc
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* PR Feedback
* Use Issue Registry
* Add config_flow tests
* Another pass with pre-commit
* Resolve cyclical import and move sensorClasses to sensor
* Update homeassistant/components/obihai/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/obihai/sensor.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/obihai/sensor.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/obihai/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Another round of feedback
* More PR feedback
* Offline testing, already_configured is required
* Update homeassistant/components/obihai/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/obihai/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/obihai/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Cleanup
* Update homeassistant/components/obihai/__init__.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* PR feedback
* Backout today's changes: Fix mypy error
* Update tests/components/obihai/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/obihai/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/obihai/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update tests/components/obihai/test_config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Don't plan ahead
* PR feedback
* Update homeassistant/components/obihai/config_flow.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Cleanup strings
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-27 17:22:15 +01:00
StefanIacobLivisi
10bf910f88
Add support for LIVISI climate devices ( #86691 )
...
* Add support for LIVISI climate devices
* Remove the reauthentication logic
* Add support for LIVISI climate devices
* Remove the reauthentication support
* Code review follow-up
* Update homeassistant/components/livisi/manifest.json
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update homeassistant/components/livisi/manifest.json
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Code review follow-up
* Code Review Follow-up
* Code Review Follow-up
* Code review follow-up
* Code review follow-up
* Code review follow-up
* Code review follow-up
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-27 10:38:52 +01:00
starkillerOG
f97b50f762
Add Reolink update entity ( #87865 )
2023-02-22 16:26:12 +01:00
Jorgen Evens
4e32b65694
Improve pjlink reliability ( #80745 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-21 16:48:53 +01:00
mletenay
60ca3b3223
Extract goodwe data update coordinator to a separate module ( #88396 )
...
* Extract coordinator to separate module
* Make field protected and replace cast
2023-02-21 08:14:12 +01:00
Aaron Bach
6bb7a7225d
Revert "Add a calendar entity to Ridwell ( #86117 )" ( #88106 )
...
This reverts commit 16a5275461
.
2023-02-14 10:23:32 -07:00
Aaron Bach
16a5275461
Add a calendar entity to Ridwell ( #86117 )
2023-02-14 06:58:41 -07:00
Erik Montnemery
ee6886dabd
Add dormakaba_dkey door and dead bolt binary sensors ( #87990 )
...
* Add dormakaba_dkey door and dead bolt binary sensors
* Rename dead bolt sensor
* Fix docstring
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-14 11:55:58 +01:00
Erik Montnemery
575f7c4205
Add dormakaba_dkey battery sensor ( #87975 )
...
* Add dormakaba_dkey battery sensor
* Update .coveragerc
* Apply suggestion from code review
* Update .coveragerc
2023-02-13 11:09:23 +01:00
Erik Montnemery
4db40810dd
Add support for dormakaba dKey locks ( #87501 )
...
* Add support for dormakaba dKey locks
* Pylint
* Address review comments
* Add test for already configured entry
* Add user flow
* Address review comments
* Simplify config flow
* Add tests
* Sort manifest
* Remove useless _abort_if_unique_id_configured
* Remove config entry update listener
* Simplify user flow
* Remove startup event
* Revert "Simplify user flow"
This reverts commit 0ef9d1c6bb
.
2023-02-12 13:46:31 +01:00
Kevin Worrel
687d326bb4
Support local push updates for most ScreenLogic entities ( #87438 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-06 20:13:36 -06:00
MarkGodwin
ce9a514667
TP-Link Omada integration ( #81223 )
...
* TP-Link Omada integration
Support for PoE config of network switch ports
* Bump omada client version
* Fixing tests
* Refactored site config flow
* Code review comments
* Fixed tests and device display name issue
* Bump isort to fix pre-commit hooks
* Hassfest for the win
* Omada code review
* Black
* More config flow test coverage
* Full coverage for omada config_flow
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-06 10:57:18 -05:00
Nathan Spencer
11ccd166fe
Use pybalboa 1.0.0 ( #87214 )
...
* Use pybalboa 1.0.0
* Code changes per PR review
2023-02-05 19:10:35 +01:00
starkillerOG
4c1147e62b
Reolink add number platform ( #87217 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-02-03 19:29:27 +01:00
On Freund
35b82db8b0
Rympro integration code fixes ( #86734 )
...
* Address review comments
* Add coordinator.py to coveragerc
* Apply suggestions from code review
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Update homeassistant/components/rympro/coordinator.py
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Move SCAN_INTERVAL to coordinator.py
---------
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-01-31 10:40:43 +01:00
Robert Hillis
b69576d6de
Add D-link tests ( #86825 )
...
* Fix D-Link config flow auth
* Add tests to D-Link
* pyupgrade
2023-01-27 22:15:27 -05:00
Franck Nijhof
021ac84405
Add recorder platform to required test category ( #86704 )
2023-01-26 11:03:56 +01:00
epenet
b2004e62b1
Remove ability to ignore coverage violations ( #86597 )
...
* Remove ability to ignore coverage violations
* Adjust codecov for required platforms
* Update codecov.yml
2023-01-25 14:27:16 +01:00
On Freund
2c9e8ad475
ReadYourMeter Pro integration ( #85986 )
...
* ReadYourMeter Pro integration
* Add __init__.py to .coveragerc
* Address code review comments
* More code review comments
2023-01-24 22:41:33 +02:00
epenet
c3c290b576
Remove files with coverage > 97% from ignore list ( #86466 )
...
* Test coverage - no-ignore
* Remove helpers/typing and scripts/auth
* Remove files with coverage > 99%
* Remove files with coverage > 98%
* Remove files with coverage > 97%
* Remove duplicates
2023-01-24 17:31:23 +01:00
epenet
15ab04f97d
Prevent wilcard coverage ignore if tests exist ( #86455 )
2023-01-23 16:33:57 +01:00
starkillerOG
7e51aeb916
Reolink add binary sensors ( #85654 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-01-20 22:27:59 +01:00
fwestenberg
29b2b6727e
Add Stookwijzer ( #84435 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-01-20 13:42:47 +01:00
930913
4f63398941
Add sensor platform to LD2410BLE ( #85276 )
...
* Add sensor platform to LD2410BLE
- Add platform
- Add moving target distance entity
- Add static target distance entity
- Add moving target energy entity
- Add static target energy entity
* Add detection distance entity
* Align bluetooth-data-tools version
* Generate sensors from description
Also add state_class and unfactor description lambdas.
* Optimise LD2410BLE collections
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-18 14:56:06 -05:00
Aaron Bach
27359dfc89
Subclass a `DataUpdateCoordinator` for Ridwell ( #85644 )
2023-01-17 19:31:00 +01:00
Brandon Rothweiler
2ed6df9003
Add EufyLife Bluetooth integration ( #85907 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-16 18:29:50 -10:00
shbatm
a81045653d
Add Insteon ramp rate select entities to ISY994 ( #85895 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-14 17:37:07 -10:00
shbatm
28bea53afe
Move ISY994 data to dataclass and remove bad entities ( #85744 )
2023-01-12 13:09:04 -10:00
Jack Boswell
43cc8a1ebf
Add binary_sensor to Starlink ( #85409 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-11 17:18:54 -10:00
Robert Hillis
3d7c61bbed
Add D-Link config flow ( #84927 )
2023-01-10 14:10:56 -10:00
shbatm
d3249432c9
Add ISY994 variables as number entities ( #85511 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-01-10 12:29:11 -10:00
Aaron Bach
5d7f33ad76
Further generalize base Ridwell entity ( #85486 )
2023-01-10 12:15:28 +01:00