{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/938","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/938/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/938/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/938/events","html_url":"https://github.com/balloob/home-assistant/issues/938","id":127625869,"number":938,"title":"unit_of_measurement should not be capitalized","user":{"login":"molobrakos","id":8228319,"avatar_url":"https://avatars.githubusercontent.com/u/8228319?v=3","gravatar_id":"","url":"https://api.github.com/users/molobrakos","html_url":"https://github.com/molobrakos","followers_url":"https://api.github.com/users/molobrakos/followers","following_url":"https://api.github.com/users/molobrakos/following{/other_user}","gists_url":"https://api.github.com/users/molobrakos/gists{/gist_id}","starred_url":"https://api.github.com/users/molobrakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molobrakos/subscriptions","organizations_url":"https://api.github.com/users/molobrakos/orgs","repos_url":"https://api.github.com/users/molobrakos/repos","events_url":"https://api.github.com/users/molobrakos/events{/privacy}","received_events_url":"https://api.github.com/users/molobrakos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T07:59:08Z","updated_at":"2016-01-20T14:13:12Z","closed_at":null,"body":"unit_of_measurement gets capitalized so that \"kW\" becomes \"KW\", \"mm\" becomes \"Mm\", etc.\r\n\r\nSI-prefixes such as \"kilo\" (\"k\") or \"milli\" (\"m\") should not be capitalized.\r\n(However, \"giga\" (\"G\"), \"tera\" (\"T\"), etc should).\r\n\r\nI would suggest not modifying the unit_of_measurement at all, i.e. use what is specified by the platform or in configuration.yaml\r\n\r\nNot sure if this is a frontend or backend issue, i.e. where the conversion takes place."},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/173215212","html_url":"https://github.com/balloob/home-assistant/issues/938#issuecomment-173215212","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/938","id":173215212,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T14:13:12Z","updated_at":"2016-01-20T14:13:12Z","body":"It's a frontend thing. We capitalize the state + unit field using CSS.\n\nOn Tue, Jan 19, 2016, 23:59 Erik <notifications@github.com> wrote:\n\n> unit_of_measurement gets capitalized so that \"kW\" becomes \"KW\", \"mm\"\n> becomes \"Mm\", etc.\n>\n> SI-prefixes such as \"kilo\" (\"k\") or \"milli\" (\"m\") should not be\n> capitalized.\n> (However, \"giga\" (\"G\"), \"tera\" (\"T\"), etc should).\n>\n> I would suggest not modifying the unit_of_measurement at all, i.e. use\n> what is specified by the platform or in configuration.yaml\n>\n> Not sure if this is a frontend or backend issue, i.e. where the conversion\n> takes place.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/balloob/home-assistant/issues/938>.\n>\n"}}