Skip to content

Commit

Permalink
Update __init__.py (#3)
Browse files Browse the repository at this point in the history
* Update __init__.py

* Set enabled default to `True`
  • Loading branch information
iantrich authored and ludeeus committed Mar 16, 2019
1 parent 6e2def9 commit 94c21d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/blueprint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@

BINARY_SENSOR_SCHEMA = vol.Schema(
{
vol.Optional(CONF_ENABLED, default=False): cv.boolean,
vol.Optional(CONF_ENABLED, default=True): cv.boolean,
vol.Optional(CONF_NAME, default=DEAFULT_NAME): cv.string,
}
)

SENSOR_SCHEMA = vol.Schema(
{
vol.Optional(CONF_ENABLED, default=False): cv.boolean,
vol.Optional(CONF_ENABLED, default=True): cv.boolean,
vol.Optional(CONF_NAME, default=DEAFULT_NAME): cv.string,
}
)

SWITCH_SCHEMA = vol.Schema(
{
vol.Optional(CONF_ENABLED, default=False): cv.boolean,
vol.Optional(CONF_ENABLED, default=True): cv.boolean,
vol.Optional(CONF_NAME, default=DEAFULT_NAME): cv.string,
}
)
Expand Down Expand Up @@ -87,7 +87,7 @@ async def async_setup(hass, config):

# Load platforms
for platform in PLATFORMS:
# Get platform spesific configuration
# Get platform specific configuration
platform_config = config[DOMAIN].get(platform, {})

# If platform is not enabled, skip.
Expand Down Expand Up @@ -123,7 +123,7 @@ async def update_data(hass):


async def check_files(hass):
"""Retrun bool that idicate that all files are present."""
"""Return bool that indicates if all files are present."""
# Verify that the user downloaded all files.
base = "{}/custom_components/{}/".format(hass.config.path(), DOMAIN)
missing = []
Expand Down

0 comments on commit 94c21d1

Please sign in to comment.