{"action":"created","issue":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/390","repository_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero","labels_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/390/comments","events_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/390/events","html_url":"https://github.com/RPi-Distro/python-gpiozero/pull/390","id":163459318,"number":390,"title":"gpiozero fails on a Revision: 000e system with the warranty bit set.","user":{"login":"DougieLawson","id":1177387,"avatar_url":"https://avatars.githubusercontent.com/u/1177387?v=3","gravatar_id":"","url":"https://api.github.com/users/DougieLawson","html_url":"https://github.com/DougieLawson","followers_url":"https://api.github.com/users/DougieLawson/followers","following_url":"https://api.github.com/users/DougieLawson/following{/other_user}","gists_url":"https://api.github.com/users/DougieLawson/gists{/gist_id}","starred_url":"https://api.github.com/users/DougieLawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DougieLawson/subscriptions","organizations_url":"https://api.github.com/users/DougieLawson/orgs","repos_url":"https://api.github.com/users/DougieLawson/repos","events_url":"https://api.github.com/users/DougieLawson/events{/privacy}","received_events_url":"https://api.github.com/users/DougieLawson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-01T19:23:27Z","updated_at":"2016-08-14T18:50:20Z","closed_at":"2016-07-03T10:52:28Z","pull_request":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/pulls/390","html_url":"https://github.com/RPi-Distro/python-gpiozero/pull/390","diff_url":"https://github.com/RPi-Distro/python-gpiozero/pull/390.diff","patch_url":"https://github.com/RPi-Distro/python-gpiozero/pull/390.patch"},"body":"https://github.com/RPi-Distro/python-gpiozero/issues/389\r\n\r\nPull request to resolve issue #389"},"comment":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/comments/239689617","html_url":"https://github.com/RPi-Distro/python-gpiozero/pull/390#issuecomment-239689617","issue_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/390","id":239689617,"user":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T18:50:20Z","updated_at":"2016-08-14T18:50:20Z","body":"Historical reasons basically - when I first wrote that I'd assumed \"Beta\" was a valid return value (based on the eLinux wiki) but since the chances of ever seeing that in the wild seem almost nil (and we don't really care about supporting the minute number of beta boards out there) it might as well be int these days.\r\n\r\nGiven it seems there's some discrepancy over whether it's 7 or 8 chars I'm tempted to modify the code to just return `revision[-4:]`, i.e. return the last 4 characters regardless of however many there are in the string (and perhaps move the hex-string conversion into `_get_pi_revision` too, so it does indeed return an int)."}}
{"actor":{"display_login":"waveform80"}}