{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/appdaemon/issues/321","repository_url":"https://api.github.com/repos/home-assistant/appdaemon","labels_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/321/comments","events_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/321/events","html_url":"https://github.com/home-assistant/appdaemon/issues/321","id":328719298,"node_id":"MDU6SXNzdWUzMjg3MTkyOTg=","number":321,"title":"weather widget does not respect \"precision\" setting","user":{"login":"snjoetw","id":1566619,"node_id":"MDQ6VXNlcjE1NjY2MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1566619?v=4","gravatar_id":"","url":"https://api.github.com/users/snjoetw","html_url":"https://github.com/snjoetw","followers_url":"https://api.github.com/users/snjoetw/followers","following_url":"https://api.github.com/users/snjoetw/following{/other_user}","gists_url":"https://api.github.com/users/snjoetw/gists{/gist_id}","starred_url":"https://api.github.com/users/snjoetw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snjoetw/subscriptions","organizations_url":"https://api.github.com/users/snjoetw/orgs","repos_url":"https://api.github.com/users/snjoetw/repos","events_url":"https://api.github.com/users/snjoetw/events{/privacy}","received_events_url":"https://api.github.com/users/snjoetw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-02T06:36:45Z","updated_at":"2018-11-04T19:49:34Z","closed_at":"2018-11-04T19:49:34Z","author_association":"CONTRIBUTOR","body":"I had precision set to \"0\" in the global_parameters and I see climate does respect my setting but not weather.\r\n\r\nI wonder if this is as simple as updating this line \r\nhttps://github.com/home-assistant/appdaemon/blob/a476b021a9745c3555897f41586244fb8c1fed18/appdaemon/widgets/baseweather/baseweather.js#L88\r\n\r\nto\r\n\r\n```\r\nself.set_field(self, field, self.format_number(self, state.state))\r\n```\r\n\r\nI'm not sure how to test appdaemon locally so I can't tell if that'd cause side effect or not, e.g. non-number fields will mess up (but is there non-number field in weather widget?)"},"comment":{"url":"https://api.github.com/repos/home-assistant/appdaemon/issues/comments/435699840","html_url":"https://github.com/home-assistant/appdaemon/issues/321#issuecomment-435699840","issue_url":"https://api.github.com/repos/home-assistant/appdaemon/issues/321","id":435699840,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTY5OTg0MA==","user":{"login":"acockburn","id":9850788,"node_id":"MDQ6VXNlcjk4NTA3ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/9850788?v=4","gravatar_id":"","url":"https://api.github.com/users/acockburn","html_url":"https://github.com/acockburn","followers_url":"https://api.github.com/users/acockburn/followers","following_url":"https://api.github.com/users/acockburn/following{/other_user}","gists_url":"https://api.github.com/users/acockburn/gists{/gist_id}","starred_url":"https://api.github.com/users/acockburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acockburn/subscriptions","organizations_url":"https://api.github.com/users/acockburn/orgs","repos_url":"https://api.github.com/users/acockburn/repos","events_url":"https://api.github.com/users/acockburn/events{/privacy}","received_events_url":"https://api.github.com/users/acockburn/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T19:49:34Z","updated_at":"2018-11-04T19:49:34Z","author_association":"COLLABORATOR","body":"Indeed it is that simple :) This will be fixed in AD 3.0.3"}}
{"actor":{"display_login":"acockburn"}}