Significant rework in how events are updated from components.

This commit is contained in:
Dermot Duffy
2022-01-14 21:31:16 -08:00
parent ebfdfe333c
commit fd8cdf21a0
11 changed files with 375 additions and 233 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export async function homeAssistantWSRequest<T>(
hass: HomeAssistant & ExtendedHomeAssistant,
schema: ZodSchema<T>,
request: MessageBase,
): Promise<T | null> {
): Promise<T> {
const response = await hass.callWS<T>(request);
if (!response) {