diff --git a/bower.json b/bower.json index 886af30f05..9e24999fc2 100644 --- a/bower.json +++ b/bower.json @@ -15,7 +15,6 @@ "fecha": "~2.3.0", "font-roboto-local": "~1.0.1", "font-roboto": "PolymerElements/font-roboto-local#~1.0.1", - "google-apis": "GoogleWebComponents/google-apis#~2.0.0", "iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^2.0.0", "iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.0", "iron-icon": "PolymerElements/iron-icon#^2.0.0", diff --git a/js/common/util/state_more_info_type.js b/js/common/util/state_more_info_type.js index ddd7aaad96..223b098f2d 100644 --- a/js/common/util/state_more_info_type.js +++ b/js/common/util/state_more_info_type.js @@ -3,7 +3,7 @@ import computeStateDomain from './compute_state_domain.js'; const DOMAINS_WITH_MORE_INFO = [ 'alarm_control_panel', 'automation', 'camera', 'climate', 'configurator', 'cover', 'fan', 'group', 'history_graph', 'light', 'lock', 'media_player', 'script', - 'sun', 'updater', 'vacuum', 'input_datetime', + 'sun', 'updater', 'vacuum', 'input_datetime', 'weather' ]; const HIDE_MORE_INFO = [ diff --git a/src/cards/ha-weather-card.html b/src/cards/ha-weather-card.html index e7fe7d1bc9..8c5145f1fe 100644 --- a/src/cards/ha-weather-card.html +++ b/src/cards/ha-weather-card.html @@ -1,6 +1,5 @@ - - + @@ -8,217 +7,214 @@ diff --git a/src/dialogs/more-info/controls/more-info-content.html b/src/dialogs/more-info/controls/more-info-content.html index f2e3b03c59..9bde82a074 100644 --- a/src/dialogs/more-info/controls/more-info-content.html +++ b/src/dialogs/more-info/controls/more-info-content.html @@ -18,6 +18,7 @@ + diff --git a/src/translations/en.json b/src/translations/en.json index 3c23cb1923..f7797ad539 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1,11 +1,4 @@ { - "attribute": { - "weather": { - "humidity": "Humidity", - "visibility": "Visibility", - "wind_speed": "Wind speed" - } - }, "domain": { "alarm_control_panel": "Alarm control panel", "automation": "Automation", @@ -269,6 +262,22 @@ "off": "[%key:state::default::off%]", "on": "[%key:state::default::on%]" }, + "weather": { + "clear_night": "Clear, night", + "cloudy": "Cloudy", + "fog": "Fog", + "hail": "Hail", + "lightning": "Lightning", + "lightning_rainy": "Lightning, rainy", + "partlycloudy": "Partly cloudy", + "pouring": "Pouring", + "rainy": "Rainy", + "snowy": "Snowy", + "snowy_rainy": "Snowy, rainy", + "sunny": "Sunny", + "windy": "Windy", + "windy_variant": "Windy" + }, "zwave": { "default": { "initializing": "Initializing", @@ -317,6 +326,34 @@ }, "script": { "execute": "Execute" + }, + "weather": { + "attributes": { + "air_pressure": "Air pressure", + "humidity": "Humidity", + "temperature": "Temperature", + "visibility": "Visibility", + "wind_speed": "Wind speed" + }, + "cardinal_direction": { + "e": "E", + "ene": "ENE", + "ese": "ESE", + "n": "N", + "ne": "NE", + "nne": "NNE", + "nw": "NW", + "nnw": "NNW", + "s": "S", + "se": "SE", + "sse": "SSE", + "ssw": "SSW", + "sw": "SW", + "w": "W", + "wnw": "WNW", + "wsw": "WSW" + }, + "forecast": "Forecast" } }, "common": {