mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Use _attr_attribution in goalzero (#61890)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d26454a313
commit
863a139b6f
@ -6,13 +6,7 @@ import logging
|
|||||||
from goalzero import Yeti, exceptions
|
from goalzero import Yeti, exceptions
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import ATTR_MODEL, CONF_HOST, CONF_NAME, Platform
|
||||||
ATTR_ATTRIBUTION,
|
|
||||||
ATTR_MODEL,
|
|
||||||
CONF_HOST,
|
|
||||||
CONF_NAME,
|
|
||||||
Platform,
|
|
||||||
)
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.exceptions import ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
from homeassistant.helpers import device_registry as dr
|
from homeassistant.helpers import device_registry as dr
|
||||||
@ -87,7 +81,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
class YetiEntity(CoordinatorEntity):
|
class YetiEntity(CoordinatorEntity):
|
||||||
"""Representation of a Goal Zero Yeti entity."""
|
"""Representation of a Goal Zero Yeti entity."""
|
||||||
|
|
||||||
_attr_extra_state_attributes = {ATTR_ATTRIBUTION: ATTRIBUTION}
|
_attr_attribution = ATTRIBUTION
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user