1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00

Fix automation sun import (#31521)

This commit is contained in:
Paulus Schoutsen 2020-02-06 03:55:11 -08:00 committed by GitHub
parent 1cfd69d484
commit 44e243039c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@ from typing import Any, Awaitable, Callable, List, Optional, Set
import voluptuous as vol
from homeassistant.components import sun
from homeassistant.const import (
ATTR_ENTITY_ID,
ATTR_NAME,
@ -578,6 +577,6 @@ def _trigger_extract_entities(trigger_conf: dict) -> List[str]:
return [trigger_conf[CONF_ZONE]]
if trigger_conf[CONF_PLATFORM] == "sun":
return [sun.ENTITY_ID]
return ["sun.sun"]
return []