From 9d3ddb898180d705abf7dfd9cdf99470fc5c6889 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= <mail@dahoiv.net>
Date: Fri, 2 Oct 2020 08:32:03 +0200
Subject: [PATCH] Scaffold: correct import (#40998)

---
 .../templates/device_trigger/integration/device_trigger.py     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/script/scaffold/templates/device_trigger/integration/device_trigger.py b/script/scaffold/templates/device_trigger/integration/device_trigger.py
index a4f918684dc..e1312148cbe 100644
--- a/script/scaffold/templates/device_trigger/integration/device_trigger.py
+++ b/script/scaffold/templates/device_trigger/integration/device_trigger.py
@@ -3,8 +3,9 @@ from typing import List
 
 import voluptuous as vol
 
-from homeassistant.components.automation import AutomationActionType, state
+from homeassistant.components.automation import AutomationActionType
 from homeassistant.components.device_automation import TRIGGER_BASE_SCHEMA
+from homeassistant.components.homeassistant.triggers import state
 from homeassistant.const import (
     CONF_DEVICE_ID,
     CONF_DOMAIN,
-- 
GitLab