def register_services(hass):
 descriptions = load_yaml_config_file(path.join(path.dirname(__file__), 'services.yaml'))
 hass.services.register(DOMAIN, SERVICE_GROUP_PLAYERS, _group_players_service, descriptions.get(SERVICE_GROUP_PLAYERS), schema=SONOS_SCHEMA)
 hass.services.register(DOMAIN, SERVICE_UNJOIN, _unjoin_service, descriptions.get(SERVICE_UNJOIN), schema=SONOS_SCHEMA)
 hass.services.register(DOMAIN, SERVICE_SNAPSHOT, _snapshot_service, descriptions.get(SERVICE_SNAPSHOT), schema=SONOS_SCHEMA)
 hass.services.register(DOMAIN, SERVICE_RESTORE, _restore_service, descriptions.get(SERVICE_RESTORE), schema=SONOS_SCHEMA)
 hass.services.register(DOMAIN, SERVICE_SET_TIMER, _set_sleep_timer_service, descriptions.get(SERVICE_SET_TIMER), schema=SONOS_SET_TIMER_SCHEMA)
 hass.services.register(DOMAIN, SERVICE_CLEAR_TIMER, _clear_sleep_timer_service, descriptions.get(SERVICE_CLEAR_TIMER), schema=SONOS_SCHEMA)

def register_services ( hass ) : descriptions = load_yaml_config_file ( path . join ( path . dirname ( __file__ ) , 'services.yaml' ) ) hass . services . register ( DOMAIN , SERVICE_GROUP_PLAYERS , _group_players_service , descriptions . get ( SERVICE_GROUP_PLAYERS ) , schema = SONOS_SCHEMA ) hass . services . register ( DOMAIN , SERVICE_UNJOIN , _unjoin_service , descriptions . get ( SERVICE_UNJOIN ) , schema = SONOS_SCHEMA ) hass . services . register ( DOMAIN , SERVICE_SNAPSHOT , _snapshot_service , descriptions . get ( SERVICE_SNAPSHOT ) , schema = SONOS_SCHEMA ) hass . services . register ( DOMAIN , SERVICE_RESTORE , _restore_service , descriptions . get ( SERVICE_RESTORE ) , schema = SONOS_SCHEMA ) hass . services . register ( DOMAIN , SERVICE_SET_TIMER , _set_sleep_timer_service , descriptions . get ( SERVICE_SET_TIMER ) , schema = SONOS_SET_TIMER_SCHEMA ) hass . services . register ( DOMAIN , SERVICE_CLEAR_TIMER , _clear_sleep_timer_service , descriptions . get ( SERVICE_CLEAR_TIMER ) , schema = SONOS_SCHEMA )
register all services for harmony devices .