Fix config issues

This commit is contained in:
ludeeus
2019-03-09 13:19:19 +01:00
parent 775d56196c
commit 616119eb09
2 changed files with 4 additions and 3 deletions

View File

@ -86,10 +86,11 @@ async def async_setup(hass, config):
continue
for entry in platform_config:
entry_config = platform_config[entry]
entry_config = entry
_LOGGER.critical(entry_config)
# If entry is not enabled, skip.
if not platform_config.get(CONF_ENABLED):
if not entry_config[CONF_ENABLED]:
continue
hass.async_create_task(

View File

@ -51,7 +51,7 @@ class BlueprintBinarySensor(BinarySensorDevice):
@property
def is_on(self):
"""Return true if the binary sensor is on."""
return self._state
return self._status
@property
def icon(self):