MCPcopy Create free account
hub / github.com/FastLED/FastLED / get_drivers

Method get_drivers

ci/autoresearch_agent.py:427–438  ·  view source on GitHub ↗

Get list of available drivers. Returns: List of enabled driver names

(self)

Source from the content-addressed store, hash-verified

425 return self.send_rpc("getState")
426
427 def get_drivers(self) -> list[str]:
428 """Get list of available drivers.
429
430 Returns:
431 List of enabled driver names
432 """
433 # send_rpc returns json.loads() output; "drivers" RPC returns a JSON array.
434 raw: object = self.send_rpc("drivers")
435 assert isinstance(raw, list), (
436 f"drivers RPC expected list, got {type(raw).__name__}"
437 )
438 return [str(d["name"]) for d in raw if d.get("enabled")]
439
440 def ping(self) -> dict[str, Any]:
441 """Health check.

Callers 1

run_autoresearch_loopFunction · 0.95

Calls 2

send_rpcMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected