mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Clean up access to config in various integrations v4 (#34174)
* Clean up access to config in various integrations v4 * Address review comments
This commit is contained in:
@@ -56,11 +56,11 @@ class ClicksendNotificationService(BaseNotificationService):
|
||||
|
||||
def __init__(self, config):
|
||||
"""Initialize the service."""
|
||||
self.username = config.get(CONF_USERNAME)
|
||||
self.api_key = config.get(CONF_API_KEY)
|
||||
self.recipient = config.get(CONF_RECIPIENT)
|
||||
self.language = config.get(CONF_LANGUAGE)
|
||||
self.voice = config.get(CONF_VOICE)
|
||||
self.username = config[CONF_USERNAME]
|
||||
self.api_key = config[CONF_API_KEY]
|
||||
self.recipient = config[CONF_RECIPIENT]
|
||||
self.language = config[CONF_LANGUAGE]
|
||||
self.voice = config[CONF_VOICE]
|
||||
self.caller = config.get(CONF_CALLER)
|
||||
if self.caller is None:
|
||||
self.caller = self.recipient
|
||||
|
||||
Reference in New Issue
Block a user