Add silver quality scale to goalzero (#53299)

* Add platinum quality scale to goalzero

* adjust for quality scale

* Update manifest.json
This commit is contained in:
Robert Hillis 2021-08-22 14:13:44 -04:00 committed by GitHub
parent e6ba3b41cb
commit bba6a75934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -53,8 +53,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
try: try:
await api.init_connect() await api.init_connect()
except exceptions.ConnectError as ex: except exceptions.ConnectError as ex:
_LOGGER.warning("Failed to connect to device %s", ex) raise ConfigEntryNotReady(f"Failed to connect to device: {ex}") from ex
raise ConfigEntryNotReady from ex
async def async_update_data(): async def async_update_data():
"""Fetch data from API endpoint.""" """Fetch data from API endpoint."""

View File

@ -8,5 +8,6 @@
{"hostname": "yeti*"} {"hostname": "yeti*"}
], ],
"codeowners": ["@tkdrob"], "codeowners": ["@tkdrob"],
"quality_scale": "silver",
"iot_class": "local_polling" "iot_class": "local_polling"
} }

View File

@ -110,6 +110,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
name="Wifi Strength", name="Wifi Strength",
device_class=DEVICE_CLASS_SIGNAL_STRENGTH, device_class=DEVICE_CLASS_SIGNAL_STRENGTH,
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS, native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS,
entity_registry_enabled_default=False,
), ),
SensorEntityDescription( SensorEntityDescription(
key="timestamp", key="timestamp",