Fix invalid warning in scrape (#80599)

This commit is contained in:
epenet
2022-10-19 23:02:11 +02:00
committed by GitHub
parent bad840e464
commit bdfead9095

View File

@@ -170,7 +170,7 @@ class ScrapeSensor(SensorEntity):
else: else:
value = tag.text value = tag.text
except IndexError: except IndexError:
_LOGGER.warning("Index '%s' not found in %s", self._attr, self.entity_id) _LOGGER.warning("Index '%s' not found in %s", self._index, self.entity_id)
value = None value = None
except KeyError: except KeyError:
_LOGGER.warning( _LOGGER.warning(