Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Commit

Permalink
Validate config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
PTST authored Feb 6, 2020
1 parent 37c4087 commit aaa5189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/o365/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
AUTH_CALLBACK_NAME,
CONF_QUERY_SENSORS,
CONF_EMAIL_SENSORS,
CONFIG_SCHEMA,
)

from .utils import validate_permissions
Expand All @@ -31,7 +32,7 @@ def setup(hass, config):
"""Set up the O365 platform."""
validate_permissions()
conf = config.get(DOMAIN, {})

CONFIG_SCHEMA(conf)
credentials = (conf.get(CONF_CLIENT_ID), conf.get(CONF_CLIENT_SECRET))
alt_config = conf.get(CONF_ALT_CONFIG)
if not alt_config:
Expand Down

0 comments on commit aaa5189

Please sign in to comment.