Fix config issues
This commit is contained in:
@ -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(
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user