-
-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Add verify_ssl option for connection setup to synology_dsm #42539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ | |
| CONF_SSL, | ||
| CONF_TIMEOUT, | ||
| CONF_USERNAME, | ||
| CONF_VERIFY_SSL, | ||
| ) | ||
| from homeassistant.core import callback | ||
| from homeassistant.exceptions import ConfigEntryNotReady | ||
|
|
@@ -43,7 +44,8 @@ | |
| from .const import ( | ||
| CONF_VOLUMES, | ||
| DEFAULT_SCAN_INTERVAL, | ||
| DEFAULT_SSL, | ||
| DEFAULT_USE_SSL, | ||
| DEFAULT_VERIFY_SSL, | ||
| DOMAIN, | ||
| ENTITY_CLASS, | ||
| ENTITY_ENABLE, | ||
|
|
@@ -64,7 +66,8 @@ | |
| { | ||
| vol.Required(CONF_HOST): cv.string, | ||
| vol.Optional(CONF_PORT): cv.port, | ||
| vol.Optional(CONF_SSL, default=DEFAULT_SSL): cv.boolean, | ||
| vol.Optional(CONF_SSL, default=DEFAULT_USE_SSL): cv.boolean, | ||
| vol.Optional(CONF_VERIFY_SSL, default=DEFAULT_VERIFY_SSL): cv.boolean, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even though this integration does support the configuration flow, we still do not accept changes to the YAML configuration. This PR, therefore, violates ADR-0010: https://github.com/home-assistant/architecture/blob/master/adr/0010-integration-configuration.md#decision
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @MartinHjelmare Should we revert?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should just remove the change to the config yaml schema. The rest is ok I think.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh wait, we can drop yaml support 💁♂️
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I've seen that I'm on "Watch release" on the architecture repo, that explain things 😅 Do you think it's possible to make a release when a new ADR comes out ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Quentame Well... you have been notified of this 4 days ago as well: See: #42539 (comment)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed 😞 To forget me, let me remove YAML support.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Proposed #42777, in draft because of a question. |
||
| vol.Required(CONF_USERNAME): cv.string, | ||
| vol.Required(CONF_PASSWORD): cv.string, | ||
| vol.Optional(CONF_DISKS): cv.ensure_list, | ||
|
|
@@ -260,6 +263,7 @@ async def async_setup(self): | |
| self._entry.data[CONF_USERNAME], | ||
| self._entry.data[CONF_PASSWORD], | ||
| self._entry.data[CONF_SSL], | ||
| self._entry.data[CONF_VERIFY_SSL], | ||
| timeout=self._entry.options.get(CONF_TIMEOUT), | ||
| ) | ||
| await self._hass.async_add_executor_job( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.