diff --git a/custom_components/blueprint/__init__.py b/custom_components/blueprint/__init__.py index 6325a51..05f5a85 100644 --- a/custom_components/blueprint/__init__.py +++ b/custom_components/blueprint/__init__.py @@ -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( diff --git a/custom_components/blueprint/binary_sensor.py b/custom_components/blueprint/binary_sensor.py index e6e2cae..7b4725a 100644 --- a/custom_components/blueprint/binary_sensor.py +++ b/custom_components/blueprint/binary_sensor.py @@ -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):