Skip to content

Commit

Permalink
Merge pull request #26 from mk-maddin/master
Browse files Browse the repository at this point in the history
Make DOMAIN part of configuration.yaml non optional
  • Loading branch information
erikkastelec authored Apr 22, 2022
2 parents 32a213b + 141f9a5 commit 64fb9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/wemportal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

CONFIG_SCHEMA = vol.Schema(
{
vol.Optional(DOMAIN, default=[]): vol.Schema(
DOMAIN: vol.Schema(
{
vol.Optional(
CONF_SCAN_INTERVAL, default=timedelta(minutes=30)
Expand Down Expand Up @@ -67,4 +67,4 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
# Initialize platforms
for platform in PLATFORMS:
hass.helpers.discovery.load_platform(platform, DOMAIN, {}, config)
return True
return True

0 comments on commit 64fb9b4

Please sign in to comment.