jamiebegin / metrics2mqtt

Publish cross-platorm system performance metrics to a MQTT broker.
MIT License
63 stars 10 forks source link

Update metrics.py #17

Open seaniedan opened 5 months ago

seaniedan commented 5 months ago

replace '.' in system name to prevent homeassistant error: [homeassistant.components.mqtt.discovery] Received message on illegal discovery topic 'homeassistant/sensor/macbook-pro.local/disk_usage__/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/integrations/mqtt/#discovery-topic