#NEWLINE# def see( hass , mac = None , dev_id = None , host_name = None , location_name = None , gps = None , gps_accuracy = None , battery = None ) : #NEWLINE# #INDENT# 'Call service to notify you see device.' #NEWLINE# data = { key : value for ( key , value ) in ( ( ATTR_MAC , mac ) , ( ATTR_DEV_ID , dev_id ) , ( ATTR_HOST_NAME , host_name ) , ( ATTR_LOCATION_NAME , location_name ) , ( ATTR_GPS , gps ) , ( ATTR_GPS_ACCURACY , gps_accuracy ) , ( ATTR_BATTERY , battery ) ) if ( value is not None ) } #NEWLINE# hass . services . call ( DOMAIN , SERVICE_SEE , data )