From bba6a75934b47fa6fbf5d1a9a1f1f88b7184e0f9 Mon Sep 17 00:00:00 2001 From: Robert Hillis Date: Sun, 22 Aug 2021 14:13:44 -0400 Subject: [PATCH] Add silver quality scale to goalzero (#53299) * Add platinum quality scale to goalzero * adjust for quality scale * Update manifest.json --- homeassistant/components/goalzero/__init__.py | 3 +-- homeassistant/components/goalzero/manifest.json | 1 + homeassistant/components/goalzero/sensor.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/goalzero/__init__.py b/homeassistant/components/goalzero/__init__.py index 379a56512c654a..04a9d6aaa86487 100644 --- a/homeassistant/components/goalzero/__init__.py +++ b/homeassistant/components/goalzero/__init__.py @@ -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.""" diff --git a/homeassistant/components/goalzero/manifest.json b/homeassistant/components/goalzero/manifest.json index 52d3a02495563f..b4a9415d01dcb7 100644 --- a/homeassistant/components/goalzero/manifest.json +++ b/homeassistant/components/goalzero/manifest.json @@ -8,5 +8,6 @@ {"hostname": "yeti*"} ], "codeowners": ["@tkdrob"], + "quality_scale": "silver", "iot_class": "local_polling" } diff --git a/homeassistant/components/goalzero/sensor.py b/homeassistant/components/goalzero/sensor.py index b422b31760173d..957891e67ed969 100644 --- a/homeassistant/components/goalzero/sensor.py +++ b/homeassistant/components/goalzero/sensor.py @@ -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",