mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
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:
parent
e6ba3b41cb
commit
bba6a75934
@ -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."""
|
||||||
|
@ -8,5 +8,6 @@
|
|||||||
{"hostname": "yeti*"}
|
{"hostname": "yeti*"}
|
||||||
],
|
],
|
||||||
"codeowners": ["@tkdrob"],
|
"codeowners": ["@tkdrob"],
|
||||||
|
"quality_scale": "silver",
|
||||||
"iot_class": "local_polling"
|
"iot_class": "local_polling"
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user