Significant rework in how events are updated from components.
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user