mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix errors if rest source becomes unavailable (#24986)
* Fix errors if rest source becomes unavailable * Remove exclamation mark
This commit is contained in:
parent
412910ca65
commit
003ca655ee
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user