eufy-mega / model/capabilities / needsRealtimeInit
Function: needsRealtimeInit()
ts
function needsRealtimeInit(capabilities): boolean;Whether any of these capabilities has realtime-init commands to send — checked before the caller pays for a CommandContext, which costs a device-param fetch.
Parameters
capabilities
ReadonlySet<Capability>
Returns
boolean