Skip to content

Commit

Permalink
Add silver quality scale to goalzero (home-assistant#53299)
Browse files Browse the repository at this point in the history
* Add platinum quality scale to goalzero

* adjust for quality scale

* Update manifest.json
  • Loading branch information
tkdrob authored Aug 22, 2021
1 parent e6ba3b4 commit bba6a75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/goalzero/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
try:
await api.init_connect()
except exceptions.ConnectError as ex:
_LOGGER.warning("Failed to connect to device %s", ex)
raise ConfigEntryNotReady from ex
raise ConfigEntryNotReady(f"Failed to connect to device: {ex}") from ex

async def async_update_data():
"""Fetch data from API endpoint."""
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/goalzero/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
{"hostname": "yeti*"}
],
"codeowners": ["@tkdrob"],
"quality_scale": "silver",
"iot_class": "local_polling"
}
1 change: 1 addition & 0 deletions homeassistant/components/goalzero/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
name="Wifi Strength",
device_class=DEVICE_CLASS_SIGNAL_STRENGTH,
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS,
entity_registry_enabled_default=False,
),
SensorEntityDescription(
key="timestamp",
Expand Down

0 comments on commit bba6a75

Please sign in to comment.