Skip to content

Commit 2607e04

Browse files
committed
fix: resolve issues with latest HA version
1 parent 66f9f37 commit 2607e04

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

custom_components/helium_solana/sensors/HeliumStats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def device_info(self) -> DeviceInfo:
6666
(DOMAIN, self.device_unique_id)
6767
},
6868
name='Helium Stats '+self.token,
69-
node_name=self.name,
69+
#node_name=self._name,
7070
manufacturer='Helium'
7171
)
7272

custom_components/helium_solana/sensors/HotspotReward.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, api, wallet, identifier, path, label, uom, icon):
3535
self.device_unique_id = "helium.hotspot.rewards."+identifier
3636
self.device_name = "Helium Hotspot "+title
3737

38-
self.node_name = label
38+
#self.node_name = label
3939

4040

4141
@property
@@ -75,7 +75,7 @@ def device_info(self) -> DeviceInfo:
7575
(DOMAIN, self.device_unique_id)
7676
},
7777
name=self.device_name,
78-
node_name=self.node_name,
78+
#node_name=self.node_name,
7979
manufacturer='Helium'
8080
)
8181

custom_components/helium_solana/sensors/PriceSensor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def __init__(self, api, address, name = "", symbol = ''):
3131
if name != '':
3232
self._unique_id = 'helium.price.'+name.lower()
3333
self._name = 'Helium Price '+name
34-
self.node_name = name
34+
#self.node_name = name
3535
else:
3636
self._unique_id = 'helium.price.'+address
3737
self._name = 'Helium Price '+address
38-
self.node_name = address
38+
#self.node_name = address
3939

4040
@property
4141
def name(self) -> str:
@@ -78,13 +78,13 @@ def device_info(self) -> DeviceInfo:
7878
(DOMAIN, self.device_unique_id)
7979
},
8080
name='Helium Price',
81-
node_name=self.node_name,
81+
#node_name=self.node_name,
8282
manufacturer='Helium'
8383
)
8484
async def async_update(self):
8585
try:
8686
response = await asyncio.to_thread(self.api,COINGECKO_PRICE_URL+'?ids='+self.symbol+'&vs_currencies=usd')
87-
print(response)
87+
#print(response)
8888
if response.status_code != 200:
8989
return
9090

custom_components/helium_solana/sensors/WalletBalance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, api, address, key, path, uom, icon):
2626
self._name = 'Helium Wallet '+address[:4]+' '+uom+" Balance"
2727
self.uom = uom
2828
self.device_unique_id = 'helium.wallet.'+address[:4]
29-
self.node_name = uom
29+
#self.node_name = uom
3030

3131
@property
3232
def name(self) -> str:
@@ -65,7 +65,7 @@ def device_info(self) -> DeviceInfo:
6565
(DOMAIN, self.device_unique_id)
6666
},
6767
name='Helium Wallet '+self.address[:4],
68-
node_name=self.node_name,
68+
#node_name=self.node_name,
6969
manufacturer='Helium'
7070
)
7171

@@ -76,7 +76,7 @@ async def async_update(self):
7676
return
7777

7878
value = response.json()
79-
print(value)
79+
#print(value)
8080
for key in self.path:
8181
value = value[key]
8282

0 commit comments

Comments
 (0)