{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/pychromecast/issues/83","repository_url":"https://api.github.com/repos/balloob/pychromecast","labels_url":"https://api.github.com/repos/balloob/pychromecast/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/balloob/pychromecast/issues/83/comments","events_url":"https://api.github.com/repos/balloob/pychromecast/issues/83/events","html_url":"https://github.com/balloob/pychromecast/issues/83","id":143102331,"number":83,"title":"'Chromecast' object has no attribute 'socket_client'","user":{"login":"cburmeister","id":1633451,"avatar_url":"https://avatars.githubusercontent.com/u/1633451?v=3","gravatar_id":"","url":"https://api.github.com/users/cburmeister","html_url":"https://github.com/cburmeister","followers_url":"https://api.github.com/users/cburmeister/followers","following_url":"https://api.github.com/users/cburmeister/following{/other_user}","gists_url":"https://api.github.com/users/cburmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/cburmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cburmeister/subscriptions","organizations_url":"https://api.github.com/users/cburmeister/orgs","repos_url":"https://api.github.com/users/cburmeister/repos","events_url":"https://api.github.com/users/cburmeister/events{/privacy}","received_events_url":"https://api.github.com/users/cburmeister/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-23T23:06:18Z","updated_at":"2016-03-24T21:27:53Z","closed_at":"2016-03-24T21:27:53Z","body":"When trying to access a Chromecast that isn't plugged in via\r\n`pychromecast.Chromecast(ip)` i'm getting an `AttributeError`:\r\n```\r\nException AttributeError: \"'Chromecast' object has no attribute 'socket_client'\" in <bound method Chromecast.__del__ of Chromecast('10.0.0.5', port=8009, device=None)> ignored\r\n```"},"comment":{"url":"https://api.github.com/repos/balloob/pychromecast/issues/comments/201030253","html_url":"https://github.com/balloob/pychromecast/issues/83#issuecomment-201030253","issue_url":"https://api.github.com/repos/balloob/pychromecast/issues/83","id":201030253,"user":{"login":"cburmeister","id":1633451,"avatar_url":"https://avatars.githubusercontent.com/u/1633451?v=3","gravatar_id":"","url":"https://api.github.com/users/cburmeister","html_url":"https://github.com/cburmeister","followers_url":"https://api.github.com/users/cburmeister/followers","following_url":"https://api.github.com/users/cburmeister/following{/other_user}","gists_url":"https://api.github.com/users/cburmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/cburmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cburmeister/subscriptions","organizations_url":"https://api.github.com/users/cburmeister/orgs","repos_url":"https://api.github.com/users/cburmeister/repos","events_url":"https://api.github.com/users/cburmeister/events{/privacy}","received_events_url":"https://api.github.com/users/cburmeister/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T21:27:53Z","updated_at":"2016-03-24T21:27:53Z","body":"Fixed by calling `Chromecast.disconnect()`:\r\n\r\nhttps://github.com/balloob/pychromecast/blob/master/pychromecast/__init__.py#L381"}}