Fix config issues
This commit is contained in:
@ -86,10 +86,11 @@ async def async_setup(hass, config):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
for entry in platform_config:
|
for entry in platform_config:
|
||||||
entry_config = platform_config[entry]
|
entry_config = entry
|
||||||
|
_LOGGER.critical(entry_config)
|
||||||
|
|
||||||
# If entry is not enabled, skip.
|
# If entry is not enabled, skip.
|
||||||
if not platform_config.get(CONF_ENABLED):
|
if not entry_config[CONF_ENABLED]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
|
@ -51,7 +51,7 @@ class BlueprintBinarySensor(BinarySensorDevice):
|
|||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Return true if the binary sensor is on."""
|
"""Return true if the binary sensor is on."""
|
||||||
return self._state
|
return self._status
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def icon(self):
|
def icon(self):
|
||||||
|
Reference in New Issue
Block a user