def setup_function():
 global HASS
 HASS = get_test_home_assistant()
 HASS.config.components = ['pilight']

def setup_function ( ) : global HASS HASS = get_test_home_assistant ( ) HASS . config . components = [ 'pilight' ]
initialize a home assistant server .