Cannot Restart because of Darksky integration missing

Having an issue with not being able to restart Homeassistant because Darksky is missing. It is not located in any of my configs anymore and I have removed the integration yet I am still seeing this error. You’ll notice that the error doesn’t reference where it even saw Darksky. Any ideas?

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 563, in async_handle_core_service
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.darksky - Integration 'darksky' not found.

it’s in your sensor section of your configuration.

First thing I checked.

➜  /config sudo grep -r sensor.darksky *
home-assistant.log.1:2023-06-05 08:30:22.503 ERROR (MainThread) [homeassistant.components.hassio] The system cannot restart because the configuration is not valid: Platform error sensor.darksky - Integration 'darksky' not found.
home-assistant.log.1:2023-06-05 08:30:22.506 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139649057059936] The system cannot restart because the configuration is not valid: Platform error sensor.darksky - Integration 'darksky' not found.
home-assistant.log.1:homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.darksky - Integration 'darksky' not found.
➜  /config 

that’s an incorrect grep. Platforms do not include the word sensor. Your configuration is most certainly…

- platform: darksky
  ...

and it’s in your sensor: section

3 Likes

Thank you! It was buried in one of my yaml files.