Enforced the constraint that an LED entity is managed by (at most) a single medium.

Thanks to Michael Allwright for spotting the issue and proposing a fix.