#NEWLINE# def setup_platform( hass , config , add_entities , discovery_info = None ) : #NEWLINE# #INDENT# 'Create and add an entity based on the configuration.' #NEWLINE# add_entities ( [ ZigBeeSwitch ( hass , ZigBeeDigitalOutConfig ( config ) ) ] )