Fix invalid warning in scrape (#80599)
parent
bad840e464
commit
bdfead9095
|
@ -170,7 +170,7 @@ class ScrapeSensor(SensorEntity):
|
|||
else:
|
||||
value = tag.text
|
||||
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
|
||||
except KeyError:
|
||||
_LOGGER.warning(
|
||||
|
|
Loading…
Reference in New Issue