{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5036","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5036/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5036/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5036/events","html_url":"https://github.com/home-assistant/home-assistant/pull/5036","id":197039544,"number":5036,"title":"Fix the BLE device tracker","user":{"login":"w1ll1am23","id":6432770,"avatar_url":"https://avatars.githubusercontent.com/u/6432770?v=3","gravatar_id":"","url":"https://api.github.com/users/w1ll1am23","html_url":"https://github.com/w1ll1am23","followers_url":"https://api.github.com/users/w1ll1am23/followers","following_url":"https://api.github.com/users/w1ll1am23/following{/other_user}","gists_url":"https://api.github.com/users/w1ll1am23/gists{/gist_id}","starred_url":"https://api.github.com/users/w1ll1am23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w1ll1am23/subscriptions","organizations_url":"https://api.github.com/users/w1ll1am23/orgs","repos_url":"https://api.github.com/users/w1ll1am23/repos","events_url":"https://api.github.com/users/w1ll1am23/events{/privacy}","received_events_url":"https://api.github.com/users/w1ll1am23/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-21T21:41:13Z","updated_at":"2016-12-23T15:41:26Z","closed_at":"2016-12-23T15:41:26Z","pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/5036","html_url":"https://github.com/home-assistant/home-assistant/pull/5036","diff_url":"https://github.com/home-assistant/home-assistant/pull/5036.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/5036.patch"},"body":"**Description:**\r\nCurrently the BLE tracker doesn't work because the MAC address is prefixed with \"BLE_\" and this gets passed to the mac_vendor code which blows up. This checks the total length of the MAC address to ignore the BLE_ MACs all together verses checking the number of fields returned when splitting the MAC on `:`\r\n\r\n~~I haven't had a chance to test this, but its pretty straightforward.~~ Tested, and works.\r\n\r\n**Related issue (if applicable):** fixes # https://community.home-assistant.io/t/bluetooth-le-tracker-issues-with-hassbian-image/8078\r\n\r\n\r\n**Checklist:**\r\n\r\nIf the code communicates with devices, web services, or third-party tools:\r\n  - [x] Local tests with `tox` run successfully. **Your PR cannot be merged unless tests pass**\r\n\r\n[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L16\r\n[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard.py#L51\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/269007257","html_url":"https://github.com/home-assistant/home-assistant/pull/5036#issuecomment-269007257","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5036","id":269007257,"user":{"login":"w1ll1am23","id":6432770,"avatar_url":"https://avatars.githubusercontent.com/u/6432770?v=3","gravatar_id":"","url":"https://api.github.com/users/w1ll1am23","html_url":"https://github.com/w1ll1am23","followers_url":"https://api.github.com/users/w1ll1am23/followers","following_url":"https://api.github.com/users/w1ll1am23/following{/other_user}","gists_url":"https://api.github.com/users/w1ll1am23/gists{/gist_id}","starred_url":"https://api.github.com/users/w1ll1am23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w1ll1am23/subscriptions","organizations_url":"https://api.github.com/users/w1ll1am23/orgs","repos_url":"https://api.github.com/users/w1ll1am23/repos","events_url":"https://api.github.com/users/w1ll1am23/events{/privacy}","received_events_url":"https://api.github.com/users/w1ll1am23/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T15:41:25Z","updated_at":"2016-12-23T15:41:25Z","body":"#5052 is a better fix. Closing this."}}
{"actor":{"display_login":"w1ll1am23"}}