1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-05 21:57:08 +00:00

35 Commits

Author SHA1 Message Date
epenet
fc8727454a
Use Mapping for async_step_reauth (p-s) () 2022-06-02 14:28:14 +02:00
Michael
275d4b9770
Improve device shutdown and unload of Synology DSM integration ()
* ignore errors during unload/logout

* automatic host update is an info, nut debug
2022-02-06 14:02:31 -08:00
Michael
eda5cfc12d
Add option to select quality of camera snapshots taken from Synology DSM connected cameras () 2022-01-23 10:23:04 -10:00
epenet
0c89c8a6b4
Use dataclass properties in synology_dsm discovery ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 18:04:00 +01:00
epenet
ec1c52d945
Use dataclass for SsdpServiceInfo ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-29 06:10:07 -10:00
Michael
445c7301f8
Skip auto-update when fqdn and ssl-verfiy is used for Synology DSM () 2021-10-14 13:55:31 -07:00
Michael
2d174d0cbb
Set unique id while SSDP discovery of Synology DSM () 2021-10-02 13:52:28 -07:00
Michael
2f3a11f930
Rewrite re-auth mechanism in Synology DSM integration () 2021-09-07 09:10:50 +02:00
Michael
13cc671844
Re-configuration possibilities for Synology DSM ()
* add automated host/ip reconfig via SSDP

* add reconfig of existing entry

* adjust tests

* adjust tests again

* use self._async_current_entries()

* _async_get_existing_entry()

* apply suggestions
2021-08-28 14:11:51 -05:00
Michael
f128bc9ef8
Add reauth flow to Synology DSM () 2021-07-21 09:16:27 -07:00
Michael
1b478ba02e
Remove yaml support from Synology DSM () 2021-07-19 19:39:32 +02:00
Milan Meulemans
aacb334cc8
Remove connection classes () 2021-06-13 12:05:09 +02:00
Maciej Bieniek
f212049fc2
Add constructor return type in integrations O-S () 2021-05-20 15:58:17 +02:00
Michael
042822e35e
Improve typing for synology_dsm () 2021-05-09 22:44:55 +02:00
Franck Nijhof
8eb27374c6
Clean up connection classes in integrations P-S () 2021-04-30 21:04:44 -10:00
Marc Mueller
2956eb0902
Update pylint to 2.7.3 ()
* Update pylint to 2.7.3

* Add class-const-naming-style

* Remove unused-import message

* Additional cleanup
2021-03-29 18:02:56 -10:00
Michael
d96249e39c
Implement additional DataUpdateCoordinator to harmonize the data update handling of Synology DSM () 2021-02-23 16:23:50 -06:00
Franck Nijhof
bc1daf1802
None optional hass typing in FlowHandler ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 13:21:37 +01:00
Michael
dbe89c1e02
Add reboot and shutdown service to synology_dsm ()
* add reboot and shutdown service to synology_dsm

* apply suggestions

* make _async_setup_services() async

* add comment to make sure unique_id is serial
2020-11-11 19:06:50 +01:00
Michael
8d9a844e84
Add verify_ssl option for connection setup to synology_dsm () 2020-11-02 14:23:16 +01:00
Michael
a2f2a42e66
Fix adding Virtual DSM system in synology_dsm () 2020-10-29 09:22:36 +01:00
Quentame
ae1c15ff14
Set longer timeout during synology_dsm config flow () 2020-10-07 01:14:05 +02:00
SNoof85
0460166c7c
Use reference strings in Synology_DSM ()
* Update strings.json

* Update config_flow.py

* Update test_config_flow.py
2020-10-06 15:35:36 +02:00
Quentame
bab4ad4f17
Add timeout config option to Synology DSM () 2020-09-12 20:36:39 -05:00
Quentame
95a33ba894
Bump Synology DSM to 0.9.0 () 2020-09-08 23:38:41 +02:00
Quentame
0ed25e9f4e
Fix Synology DSM discovery can't be ignored () 2020-05-07 10:31:35 -07:00
Quentame
81651b0b25
Add Synology DSM scan interval option flow ()
* Add Synology DSM scan interval option flow

* Add options tests

* Review: use entry.update_listeners

* Use cv.positive_int

* Try to fix "ValueError: Config entry has already been setup!"

* Fix ValueError
2020-05-07 00:15:49 +02:00
Quentame
661656e373
Fix Synology NAS discovered multiple times () 2020-05-02 22:46:55 -07:00
Quentame
b741199ed3
Log config flow errors () 2020-04-24 23:10:57 +02:00
J. Nick Koston
f94329dbbd
Handle synology_dsm discovery broadcasting on multiple ip addresses () 2020-04-23 17:53:18 -07:00
Quentame
a8cd7203df
Bump python-synology to 0.7.0 () 2020-04-22 16:28:47 -05:00
Quentame
30744bea9c
Add 2SA authentication to Synology DSM ()
Co-Authored-By: J. Nick Koston <nick@koston.org>

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-04-17 18:47:50 -05:00
Quentame
618538aeff
Add missed CONF_API_VERSION config in flow + Fix missing_data translation ()
* Add missed CONF_API_VERSION config in flow + remove CONF_NAME in tests

* Fix missing_data translation
2020-04-17 22:45:17 +02:00
J. Nick Koston
078ce6766e
Add discovery support to synology_dsm ()
* Add discovery support to synology_dsm

* Remove debug

* black

* Fix mocks

* Merge strings

* Move placeholders

* add missing placeholders

* reorder

* use constants in test

* Remove CONF_NAME (only displayed in discovery now)

* test reduction

* Shorten long name

* Use name for name but NOT for unique_id, remove CONF_NAME from yaml config

* Use Synology for the name for now, hopefully we can use the hostname later

* lint

* Remove name from strings

* remove =None

* show login errors at username field

* Update tests/components/synology_dsm/test_config_flow.py

Co-Authored-By: Quentame <polletquentin74@me.com>

* Update tests/components/synology_dsm/test_config_flow.py

Co-Authored-By: Quentame <polletquentin74@me.com>

* Update homeassistant/components/synology_dsm/const.py

Co-authored-by: Quentame <polletquentin74@me.com>
2020-04-07 10:22:35 -07:00
Quentame
d99e228983
Add config flow to Synology DSM ()
* Add config flow to Synology DSM

* Use proper sensor unique ID from flow + sensor name

* Add description to api_version

* Add authentication flow check

* Add device_info

* Add test_login_failed test

* Bump python-synology to 0.5.0

* 0.5.0 test updates

* Use NAS S/N as config_flow unique_id

* Add missed conf disks + volumes

* Review: async_unload the async_track_time_interval

* Fix NoneType for disks or volumes

* Keep all disks and volumes forever

* Update homeassistant/components/synology_dsm/.translations/en.json

Co-Authored-By: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/synology_dsm/strings.json

Co-Authored-By: J. Nick Koston <nick@koston.org>

* Fix "Keep all disks and volumes forever" for empty import

* Fix prettier

* Remove useless LOGGER in config flow

* Fix Synology DSM tests doing I/O

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-04-05 17:50:52 -05:00