Style fixes
This commit is contained in:
1 parent
3b3f5fe6fe
commit
98b4c27211
2 files changed
+6
-5
No files matched your search
@@ -20,10 +20,10 @@ _LOGGER = logging.getLogger(__name__)
|
||||
def get_service(hass, config):
|
||||
""" Get the mail notification service. """
|
||||
|
||||
if not validate_config(
|
||||
{DOMAIN: config},
|
||||
{DOMAIN: ['server', 'port', 'sender', 'username', 'password',
|
||||
'recipient']}, _LOGGER):
|
||||
if not validate_config({DOMAIN: config},
|
||||
{DOMAIN: ['server', 'port', 'sender', 'username',
|
||||
'password', 'recipient']},
|
||||
_LOGGER):
|
||||
return None
|
||||
|
||||
smtp_server = config['server']
|
||||
|
||||
Reference in new issue
Block a user