Skip to content

Commit

Permalink
fix load failure on hass 2023.9.0
Browse files Browse the repository at this point in the history
_attr_visibility
  • Loading branch information
dave_albright committed Sep 7, 2023
1 parent 52cbf9e commit 7be27cb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
34 changes: 34 additions & 0 deletions custom_components/wundergroundpws/translations/pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"config": {
"error": {
"invalid_station_id": "Nieprawidłowy identyfikator stacji",
"invalid_api_key": "Nieprawidłowy klucz API",
"unknown_error": "Nieznany błąd"
},
"step": {
"user": {
"data": {
"api_key": "Klucz API",
"name": "Nazwa",
"pws_id": "Identyfikator PWS - własnej stacji pogodowej (wielkość liter ma znaczenie)"
},
"description": "Skonfiguruj integrację WundergroundPWS. Aby wygenerować klucz API, przejdź na https://www.wunderground.com/member/api-keys",
"title": "WundergroundPWS"
}
}
},
"options": {
"step": {
"init": {
"data": {
"forecast_sensors": "Utworzyć sensory prognozy?",
"numeric_precision": "Precyzja dziesiętna",
"lang": "Język",
"calendarday_temp": "Temperatura według dni kalendarzowych? (funkcja eksperymentalna)",
"latitude": "Szerokość geograficzna — wartość domyślna jest pobierana z identyfikatora stacji",
"longitude": "Długość geograficzna — wartość domyślna jest pobierana z identyfikatora stacji"
}
}
}
}
}
18 changes: 9 additions & 9 deletions custom_components/wundergroundpws/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ def ozone(self) -> float:
"""Return the ozone level."""
return self._attr_ozone

@property
def native_visibility(self) -> float:
"""Return the visibility in native units."""
return self._attr_visibility

@property
def native_visibility_unit(self) -> str:
"""Return the native unit of measurement for visibility."""
return self._attr_visibility_unit
# @property
# def native_visibility(self) -> float:
# """Return the visibility in native units."""
# return self._attr_visibility
#
# @property
# def native_visibility_unit(self) -> str:
# """Return the native unit of measurement for visibility."""
# return self._attr_visibility_unit

@property
def native_precipitation_unit(self) -> str:
Expand Down

0 comments on commit 7be27cb

Please sign in to comment.