fixed trigger device validation
This commit is contained in:
1 parent
d22bba8c4d
commit
ab7f50d4aa
4 files changed
+18
-13
No files matched your search
@@ -5,6 +5,9 @@ import { DeviceEditor } from "components/DeviceEditor";
|
||||
export const TriggerDevice: OptionManager<AutomationTriggerDevice> = {
|
||||
defaultState: () => ({
|
||||
platform: "device",
|
||||
device_id: "",
|
||||
domain: "",
|
||||
type: "",
|
||||
}),
|
||||
isReady: () => true,
|
||||
Component: ({ state, setState, ha }) => {
|
||||
@@ -27,6 +30,9 @@ export const TriggerDevice: OptionManager<AutomationTriggerDevice> = {
|
||||
setState={(s) =>
|
||||
setState({
|
||||
platform: "device",
|
||||
device_id: "",
|
||||
domain: "",
|
||||
type: "",
|
||||
...s,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user