8000 Moon translate by pvizeli · Pull Request #15498 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Moon translate #15498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 18, 2018
Merged

Moon translate #15498

merged 5 commits into from
Jul 18, 2018

Conversation

pvizeli
Copy link
Member
@pvizeli pvizeli commented Jul 16, 2018

Description:

I try to add a translation for moon sensor. I change it like the season sensor. A sensor they return a string should be lowercase. It should be return a number as sensor but it work now like in this way.

@@ -50,20 +50,20 @@ def name(self):
def state(self):
"""Return the state of the device."""
if self._state == 0:
return 'New moon'
return 'new moon'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although we can use whitespaces in translation file keys, I'm not sure if we want this wild mix of " ", "_". "-" for states

@balloob balloob merged commit 058081b into dev Jul 18, 2018
@ghost ghost removed the in progress label Jul 18, 2018
@balloob balloob deleted the moon-translate branch July 18, 2018 08:54
@balloob balloob mentioned this pull request Aug 3, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0