Add types-beautifulsoup4 dependency (#98377)
This commit is contained in:
parent
4dd102f818
commit
180ff24492
2 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,7 @@ class ScrapeSensor(
|
|||
def _extract_value(self) -> Any:
|
||||
"""Parse the html extraction in the executor."""
|
||||
raw_data = self.coordinator.data
|
||||
value: str | list[str] | None
|
||||
try:
|
||||
if self._attr is not None:
|
||||
value = raw_data.select(self._select)[self._index][self._attr]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue