a few small thing discovery fixes

Signed-off-by: Kai Kreuzer <kai@openhab.org>