From b100a15b9d2b939fbaff5d56a29a4f8f12da4e20 Mon Sep 17 00:00:00 2001 From: Brian Berg Date: Sat, 11 Jul 2020 23:46:38 -0400 Subject: [PATCH] feat(RecentMiningPayoutSensor): update name - tweak class description --- custom_components/nicehash/payout_sensors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/nicehash/payout_sensors.py b/custom_components/nicehash/payout_sensors.py index 6b4bf27..b895442 100644 --- a/custom_components/nicehash/payout_sensors.py +++ b/custom_components/nicehash/payout_sensors.py @@ -9,6 +9,7 @@ from homeassistant.helpers.entity import Entity from .const import ( CURRENCY_BTC, + DEFAULT_NAME, FORMAT_DATETIME, ICON_CURRENCY_BTC, ICON_PULSE, @@ -27,7 +28,7 @@ _LOGGER = logging.getLogger(__name__) class RecentMiningPayoutSensor(Entity): """ - Displays most recent payout of a mining rig + Displays most recent mining payout """ def __init__( @@ -45,7 +46,7 @@ class RecentMiningPayoutSensor(Entity): @property def name(self): """Sensor name""" - return f"Recent Mining Payout" + return f"{DEFAULT_NAME} Recent Mining Payout" @property def unique_id(self):