mirror of
https://github.com/home-assistant/frontend
synced 2024-10-05 22:05:30 +02:00
Fix documentation form (#16601)
This commit is contained in:
parent
e9d9d89d79
commit
303087d049
@ -1,7 +1,7 @@
|
||||
import { MockHomeAssistant } from "../../../src/fake_data/provide_hass";
|
||||
|
||||
export const mockConfigEntries = (hass: MockHomeAssistant) => {
|
||||
hass.mockWS("config_entries/get", () => [
|
||||
hass.mockWS("config_entries/get_matching", () => [
|
||||
{
|
||||
entry_id: "co2signal",
|
||||
domain: "co2signal",
|
||||
|
@ -71,7 +71,7 @@ export const computeInitialHaFormData = (
|
||||
data[field.name] = "00:00:00";
|
||||
} else if ("date" in selector || "datetime" in selector) {
|
||||
const now = new Date().toISOString().slice(0, 10);
|
||||
data[field.name] = `${now} 00:00:00`;
|
||||
data[field.name] = `${now}T00:00:00`;
|
||||
} else if ("color_rgb" in selector) {
|
||||
data[field.name] = [0, 0, 0];
|
||||
} else if ("color_temp" in selector) {
|
||||
|
Loading…
Reference in New Issue
Block a user