def supported(event):
    return (isinstance(event.device, rfxtrxmod.LightingDevice) and event.device.known_to_be_dimmable)
def supported(event):
    return (isinstance(event.device, rfxtrxmod.LightingDevice) and event.device.known_to_be_dimmable)