Fix invalid warning in scrape (#80599)

pull/80640/head
epenet 2022-10-19 23:02:11 +02:00 committed by GitHub
parent bad840e464
commit bdfead9095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(