{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/1625","repository_url":"https://api.github.com/repos/balloob/home-assistant","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/1625/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/1625/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/1625/events","html_url":"https://github.com/balloob/home-assistant/issues/1625","id":143780294,"number":1625,"title":"iCloud error after upgrade","user":{"login":"lvanbrunt","id":18096427,"avatar_url":"https://avatars.githubusercontent.com/u/18096427?v=3","gravatar_id":"","url":"https://api.github.com/users/lvanbrunt","html_url":"https://github.com/lvanbrunt","followers_url":"https://api.github.com/users/lvanbrunt/followers","following_url":"https://api.github.com/users/lvanbrunt/following{/other_user}","gists_url":"https://api.github.com/users/lvanbrunt/gists{/gist_id}","starred_url":"https://api.github.com/users/lvanbrunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvanbrunt/subscriptions","organizations_url":"https://api.github.com/users/lvanbrunt/orgs","repos_url":"https://api.github.com/users/lvanbrunt/repos","events_url":"https://api.github.com/users/lvanbrunt/events{/privacy}","received_events_url":"https://api.github.com/users/lvanbrunt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-27T06:10:44Z","updated_at":"2016-03-27T07:11:31Z","closed_at":null,"body":"**Home Assistant release (`hass --version`):**\r\n0.16.0\r\n\r\n**Python release (`python3 --version`):**\r\n3.4.3\r\n\r\n**Component/platform:**\r\niCloud\r\n\r\n**Description of problem:**\r\nAfter upgrade, iCloud component no longer works.  Error in log:\r\n\r\n16-03-26 22:31:18 homeassistant.components.device_tracker.icloud: Logging into iCloud Account\r\n16-03-26 22:31:18 homeassistant.components.device_tracker: Error setting up platform icloud\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/__init__.py\", line 127, in setup_platform\r\n    if not platform.setup_scanner(hass, p_config, tracker.see):\r\n  File \"/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/icloud.py\", line 40, in setup_scanner\r\n    verify=True)\r\n  File \"/home/vanbrunt/.homeassistant/lib/pyicloud/base.py\", line 152, in __init__\r\n    self.session.cookies.load()\r\n  File \"/usr/lib/python3.4/http/cookiejar.py\", line 1765, in load\r\n    self._really_load(f, filename, ignore_discard, ignore_expires)\r\n  File \"/usr/lib/python3.4/http/cookiejar.py\", line 1864, in _really_load\r\n    magic = f.readline()\r\n  File \"/usr/lib/python3.4/codecs.py\", line 319, in decode\r\n    (result, consumed) = self._buffer_decode(data, self.errors, final)\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte\r\n\r\n\r\n**Expected:**\r\n\r\niCloud should work as it did before the upgrade.\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```yaml\r\ndevice_tracker:\r\n  platform: nmap_tracker\r\n  hosts: 192.168.4.0/24\r\n  home_interval: 5\r\n  track_new_devices: no\r\n\r\ndevice_tracker 2:\r\n  platform: icloud\r\n  username: [redacted[@icloud.com\r\n  password: [redacted]\r\n\r\ndevice_tracker 3:\r\n  platform: owntracks\r\n  max_gps_accuracy: 200\r\n\r\ndevice_tracker 4:\r\n  platform: icloud\r\n  username: [redacted]@gmail.com\r\n  password: [redacted]\r\n\r\n```\r\n\r\n1. \r\n2. \r\n3. \r\n\r\n**Traceback (if applicable):**\r\n```bash\r\n\r\n```\r\n\r\n**Additional info:**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/202003054","html_url":"https://github.com/balloob/home-assistant/issues/1625#issuecomment-202003054","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/1625","id":202003054,"user":{"login":"lvanbrunt","id":18096427,"avatar_url":"https://avatars.githubusercontent.com/u/18096427?v=3","gravatar_id":"","url":"https://api.github.com/users/lvanbrunt","html_url":"https://github.com/lvanbrunt","followers_url":"https://api.github.com/users/lvanbrunt/followers","following_url":"https://api.github.com/users/lvanbrunt/following{/other_user}","gists_url":"https://api.github.com/users/lvanbrunt/gists{/gist_id}","starred_url":"https://api.github.com/users/lvanbrunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvanbrunt/subscriptions","organizations_url":"https://api.github.com/users/lvanbrunt/orgs","repos_url":"https://api.github.com/users/lvanbrunt/repos","events_url":"https://api.github.com/users/lvanbrunt/events{/privacy}","received_events_url":"https://api.github.com/users/lvanbrunt/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T07:11:31Z","updated_at":"2016-03-27T07:11:31Z","body":"Yes, a user such as myself wouldn't know how to troubleshoot this at all."}}