Hi I am trying to get the Multiscrape working and just using the basic config settings to get the latest version off here.
- platform: multiscrape
resource: https://www.home-assistant.io
scan_interval: 3600
sensor:
unique_id: ha_latest_version
name: Latest version
select: ".current-version > h1:nth-child(1)"
value_template: '{{ (value.split(":")[1]) }}'
I keep getting this error.
Error while setting up multiscrape platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/multiscrape/sensor.py", line 55, in async_setup_platform
if not coordinator.last_update_success:
UnboundLocalError: local variable 'coordinator' referenced before assignment
Home Assistant Core 2022.6.7
Home Assistant Supervisor 2022.06.2
Home Assistant OS 8.2