{"action":"created","issue":{"url":"https://api.github.com/repos/360manu/pimatic-mythermostat/issues/1","repository_url":"https://api.github.com/repos/360manu/pimatic-mythermostat","labels_url":"https://api.github.com/repos/360manu/pimatic-mythermostat/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/360manu/pimatic-mythermostat/issues/1/comments","events_url":"https://api.github.com/repos/360manu/pimatic-mythermostat/issues/1/events","html_url":"https://github.com/360manu/pimatic-mythermostat/issues/1","id":155702103,"number":1,"title":"Implement destroy() method for pimatic 0.9","user":{"login":"mwittig","id":6117742,"avatar_url":"https://avatars.githubusercontent.com/u/6117742?v=3","gravatar_id":"","url":"https://api.github.com/users/mwittig","html_url":"https://github.com/mwittig","followers_url":"https://api.github.com/users/mwittig/followers","following_url":"https://api.github.com/users/mwittig/following{/other_user}","gists_url":"https://api.github.com/users/mwittig/gists{/gist_id}","starred_url":"https://api.github.com/users/mwittig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwittig/subscriptions","organizations_url":"https://api.github.com/users/mwittig/orgs","repos_url":"https://api.github.com/users/mwittig/repos","events_url":"https://api.github.com/users/mwittig/events{/privacy}","received_events_url":"https://api.github.com/users/mwittig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-19T10:18:35Z","updated_at":"2016-11-19T15:10:35Z","closed_at":"2016-11-19T15:10:35Z","body":"For pimatic 0.9 your MyHeatingThermostat device needs to implement a destroy method as follows:\n\n```\ndestroy: () ->\n  # shutdown device, i.e., remove Timers, de-register event handlers registered with the framework\n  super()\n```\n\n I have quickly reviewed your code and as far as I understand this you need to deregister the event callback functions for \"variableAdded\" and \"\"variableValueChanged\" in  _startObservation(). Moreover, you need call @modeSchedule.stop() and @modeManual.stop(). \n"},"comment":{"url":"https://api.github.com/repos/360manu/pimatic-mythermostat/issues/comments/261719257","html_url":"https://github.com/360manu/pimatic-mythermostat/issues/1#issuecomment-261719257","issue_url":"https://api.github.com/repos/360manu/pimatic-mythermostat/issues/1","id":261719257,"user":{"login":"360manu","id":12594097,"avatar_url":"https://avatars.githubusercontent.com/u/12594097?v=3","gravatar_id":"","url":"https://api.github.com/users/360manu","html_url":"https://github.com/360manu","followers_url":"https://api.github.com/users/360manu/followers","following_url":"https://api.github.com/users/360manu/following{/other_user}","gists_url":"https://api.github.com/users/360manu/gists{/gist_id}","starred_url":"https://api.github.com/users/360manu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/360manu/subscriptions","organizations_url":"https://api.github.com/users/360manu/orgs","repos_url":"https://api.github.com/users/360manu/repos","events_url":"https://api.github.com/users/360manu/events{/privacy}","received_events_url":"https://api.github.com/users/360manu/received_events","type":"User","site_admin":false},"created_at":"2016-11-19T15:10:35Z","updated_at":"2016-11-19T15:10:35Z","body":"Hello\r\n\r\nIt's done.\r\nThanks"}}
{"actor":{"display_login":"360manu"}}