Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 57c933c

Browse files
committed
Add hostname
Closes #60
1 parent 6a265b4 commit 57c933c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

custom_components/authenticated/sensor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ def notify(self, hass):
397397
country = "**Country:** {}".format(self.country)
398398
else:
399399
country = ""
400+
if self.hostname is not None:
401+
hostname = "**Hostname:** {}".format(self.hostname)
402+
else:
403+
hostname = ""
400404
if self.region is not None:
401405
region = "**Region:** {}".format(self.region)
402406
else:
@@ -420,6 +424,7 @@ def notify(self, hass):
420424
self.ip_address,
421425
self.username,
422426
country,
427+
hostname,
423428
region,
424429
city,
425430
last_used_at.replace("T", " "),

0 commit comments

Comments
 (0)