feat(RecentMiningPayoutSensor): update name
- tweak class description
This commit is contained in:
parent
b28e6ea554
commit
b100a15b9d
@ -9,6 +9,7 @@ from homeassistant.helpers.entity import Entity
|
|||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
CURRENCY_BTC,
|
CURRENCY_BTC,
|
||||||
|
DEFAULT_NAME,
|
||||||
FORMAT_DATETIME,
|
FORMAT_DATETIME,
|
||||||
ICON_CURRENCY_BTC,
|
ICON_CURRENCY_BTC,
|
||||||
ICON_PULSE,
|
ICON_PULSE,
|
||||||
@ -27,7 +28,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class RecentMiningPayoutSensor(Entity):
|
class RecentMiningPayoutSensor(Entity):
|
||||||
"""
|
"""
|
||||||
Displays most recent payout of a mining rig
|
Displays most recent mining payout
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@ -45,7 +46,7 @@ class RecentMiningPayoutSensor(Entity):
|
|||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Sensor name"""
|
"""Sensor name"""
|
||||||
return f"Recent Mining Payout"
|
return f"{DEFAULT_NAME} Recent Mining Payout"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user