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:
1 parent
96aaa25aad
commit
e2af216bcd
20 files changed
+53
-55
No files matched your search
@@ -29,8 +29,8 @@ class ClickatellNotificationService(BaseNotificationService):
|
||||
|
||||
def __init__(self, config):
|
||||
"""Initialize the service."""
|
||||
self.api_key = config.get(CONF_API_KEY)
|
||||
self.recipient = config.get(CONF_RECIPIENT)
|
||||
self.api_key = config[CONF_API_KEY]
|
||||
self.recipient = config[CONF_RECIPIENT]
|
||||
|
||||
def send_message(self, message="", **kwargs):
|
||||
"""Send a message to a user."""
|
||||
|
||||
Reference in new issue
Block a user