Disabling entity with findbytag does not work

this is my code
its supposed to disable everything with that tag but it does absolutely nothing. If I change tag to name it works but only for one entity so I would like the tag to work


Currently you try to disable an array of entities. You can use forEach to disable all entities of an array. Below an example.

var ladders = this.app.root.findByTag("Ladder");
    ladderEntity.enabled = false;