Alex2Node/src
David 2f6730eb52 device: the client of new Device() and setMqttClient() warn once
2.0 ignored the first argument of the Device constructor in silence and
had removed setMqttClient(), so a 1.x call threw a TypeError. Both are
deprecated shims now, as the design lists them: setMqttClient() is back
and does nothing, a client given to the constructor is ignored, and each
says once in a process what to do. The line goes to the log hook of the
bridge; a device on no bridge has none and emits a DeprecationWarning
(ALEX2NODE_DEVICE_CLIENT, ALEX2NODE_SET_MQTT_CLIENT).
null and undefined as the client warn nothing: the bridge passes null.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 21:19:10 +00:00
..
compat registry: ThermostatController 3.2 and ThermostatController.Schedule 2026-09-28 20:34:49 +00:00
device device: the client of new Device() and setMqttClient() warn once 2026-09-28 21:19:10 +00:00
messages errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
registry errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
Alex2Node.ts device: the client of new Device() and setMqttClient() warn once 2026-09-28 21:19:10 +00:00
dispatcher.ts bridge: a discovery request that arrives twice is answered once 2026-09-28 21:16:50 +00:00
index.ts errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
topics.ts registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
transport.ts dispatch: typed handlers, respond/defer/error, automatic ErrorResponse, watchdog 2026-09-28 19:49:41 +00:00