Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Feb 1, 2025
1 parent f7876a7 commit b95f15f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/matter/ControllerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,16 @@ class Controller implements GeneralNode {

#registerNodeHandlers(node: PairedNode): void {
node.events.attributeChanged.on(data => {
this.#nodes.get(node.nodeId.toString())?.handleChangedAttribute(data);
this.#nodes
.get(node.nodeId.toString())
?.handleChangedAttribute(data)
.catch(error => this.#adapter.log.error(`Error handling attribute change: ${error}`));
});
node.events.eventTriggered.on(data => {
this.#nodes.get(node.nodeId.toString())?.handleTriggeredEvent(data);
this.#nodes
.get(node.nodeId.toString())
?.handleTriggeredEvent(data)
.catch(error => this.#adapter.log.error(`Error handling event: ${error}`));
});
node.events.stateChanged.on(async (info: PairedNodeStates) => {
const nodeDetails = (this.#commissioningController?.getCommissionedNodesDetails() ?? []).find(
Expand Down
1 change: 0 additions & 1 deletion src/matter/to-iobroker/ioBrokerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { OnOffPlugInUnitToIoBroker } from './OnOffPlugInUnitToIoBroker';
import { TemperatureSensorToIoBroker } from './TemperatureSensorToIoBroker';
import { UtilityOnlyToIoBroker } from './UtilityOnlyToIoBroker';
import { WaterLeakDetectorToIoBroker } from './WaterLeakDetectorToIoBroker';
import { ColorTemperatureLightToIoBroker } from './ColorTemperatureLightToIoBroker';
import { GenericSwitchToIoBroker } from './GenericSwitchToIoBroker';
import { LightSensorToIoBroker } from './LightSensorToIoBroker';
import { ExtendedColorLightToIoBroker } from './ExtendedColorLightToIoBroker';
Expand Down

0 comments on commit b95f15f

Please sign in to comment.