Skip to content

Commit

Permalink
Translations for season sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
emlove committed Feb 17, 2018
1 parent 3850ed5 commit 4084719
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions homeassistant/components/sensor/season.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
NORTHERN = 'northern'
SOUTHERN = 'southern'
EQUATOR = 'equator'
STATE_SPRING = 'Spring'
STATE_SUMMER = 'Summer'
STATE_AUTUMN = 'Autumn'
STATE_WINTER = 'Winter'
STATE_SPRING = 'spring'
STATE_SUMMER = 'summer'
STATE_AUTUMN = 'autumn'
STATE_WINTER = 'winter'
TYPE_ASTRONOMICAL = 'astronomical'
TYPE_METEOROLOGICAL = 'meteorological'
VALID_TYPES = [TYPE_ASTRONOMICAL, TYPE_METEOROLOGICAL]
Expand Down
8 changes: 8 additions & 0 deletions homeassistant/components/sensor/strings.season.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"state": {
"spring": "Spring",
"summer": "Summer",
"autumn": "Autumn",
"winter": "Winter"
}
}

0 comments on commit 4084719

Please sign in to comment.