From bdfead90958bb90e8e41dc69d0670325644d98b8 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 19 Oct 2022 23:02:11 +0200 Subject: [PATCH] Fix invalid warning in scrape (#80599) --- homeassistant/components/scrape/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/scrape/sensor.py b/homeassistant/components/scrape/sensor.py index d34080c1712..1f696d73007 100644 --- a/homeassistant/components/scrape/sensor.py +++ b/homeassistant/components/scrape/sensor.py @@ -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(