def uninstall_osx():
 path = os.path.expanduser('~/Library/LaunchAgents/org.homeassistant.plist')
 os.popen(('launchctl unload ' + path))
 print 'Home Assistant has been uninstalled.'

def uninstall_osx ( ) : path = os . path . expanduser ( '~/Library/LaunchAgents/org.homeassistant.plist' ) os . popen ( ( 'launchctl unload ' + path ) ) print 'Home Assistant has been uninstalled.'
unload from launchd on os x .