Skip to content

Commit

Permalink
Merge pull request #144 from kroecks/master
Browse files Browse the repository at this point in the history
Always update sensor_name after resolving hostname
This solution may affect issues (#122 , #131 , and #142)
  • Loading branch information
ironsheep committed Apr 24, 2024
2 parents aeae267 + c86fa10 commit 35a9fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ISP-RPi-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,8 @@ def getNumberOfAvailableUpdates():

# get our hostnames so we can setup MQTT
getHostnames()
if(sensor_name == default_sensor_name):
sensor_name = 'rpi-{}'.format(rpi_hostname)
sensor_name = 'rpi-{}'.format(rpi_hostname)

# get model so we can use it too in MQTT
getDeviceModel()
getDeviceCpuInfo()
Expand Down

0 comments on commit 35a9fc5

Please sign in to comment.