lower HassOverview refresh interval

This commit is contained in:
Daniel Kluge 2022-11-01 14:39:53 +01:00
parent 7eaa80ce37
commit b060a4adc6

View File

@ -2,7 +2,7 @@ import * as React from "react"
import { HAssStates } from "../lib/interfaces"; import { HAssStates } from "../lib/interfaces";
import * as styles from "../styles/containers/HomeAssistant.module.css"; import * as styles from "../styles/containers/HomeAssistant.module.css";
const HASS_REFRESH_INTERVAL = 15 * 60 * 1000; const HASS_REFRESH_INTERVAL = 5 * 60 * 1000;
const HomeAssistant = ({ hassUrl, token }: { hassUrl: string, token: string }) => { const HomeAssistant = ({ hassUrl, token }: { hassUrl: string, token: string }) => {
const [states, setStates] = React.useState<HAssStates>({ const [states, setStates] = React.useState<HAssStates>({