diff --git a/homeassistant/components/scrape/sensor.py b/homeassistant/components/scrape/sensor.py index a5975d4f9d0..80af36e6d1d 100644 --- a/homeassistant/components/scrape/sensor.py +++ b/homeassistant/components/scrape/sensor.py @@ -109,6 +109,9 @@ class ScrapeSensor(Entity): def update(self): """Get the latest data from the source and updates the state.""" self.rest.update() + if self.rest.data is None: + _LOGGER.error("Unable to retrieve data") + return from bs4 import BeautifulSoup