def fire_pilight_message(protocol, data):
 message = {pilight.CONF_PROTOCOL: protocol}
 message.update(data)
 HASS.bus.fire(pilight.EVENT, message)

def fire_pilight_message ( protocol , data ) : message = { pilight . CONF_PROTOCOL : protocol } message . update ( data ) HASS . bus . fire ( pilight . EVENT , message )
fire the fake pilight message .