Function useHomeassistantRestApi
- useHomeassistantRestApi<TResponse>(path: string, options?: Partial<PublicConfiguration<TResponse, unknown, BareFetcher<TResponse>>>): SWRResponse<TResponse, any, undefined | Partial<PublicConfiguration<TResponse, any, BareFetcher<TResponse>>>>
-
Parameters
-
path: string
-
Optional
options: Partial<PublicConfiguration<TResponse, unknown, BareFetcher<TResponse>>>
Returns SWRResponse<TResponse, any, undefined | Partial<PublicConfiguration<TResponse, any, BareFetcher<TResponse>>>>
GET Homeassistant REST API endpoint via SWR library. See https://developers.home-assistant.io/docs/api/rest/ for available endpoints.