@@ -521,7 +521,7 @@ def send_discovery_topics(sensor_mac, wait=True):
521521 'hw_version' : attr ['hw_version' ],
522522 'name' : attr ['name' ],
523523 'sw_version' : attr ['sw_version' ],
524- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
524+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
525525 }
526526 }
527527
@@ -540,7 +540,7 @@ def send_discovery_topics(sensor_mac, wait=True):
540540 'hw_version' : attr ['hw_version' ],
541541 'name' : attr ['name' ],
542542 'sw_version' : attr ['sw_version' ],
543- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
543+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
544544 }
545545 }
546546
@@ -558,7 +558,7 @@ def send_discovery_topics(sensor_mac, wait=True):
558558 'hw_version' : attr ['hw_version' ],
559559 'name' : attr ['name' ],
560560 'sw_version' : attr ['sw_version' ],
561- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
561+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
562562 }
563563 }
564564
@@ -575,7 +575,7 @@ def send_discovery_topics(sensor_mac, wait=True):
575575 'hw_version' : attr ['hw_version' ],
576576 'name' : attr ['name' ],
577577 'sw_version' : attr ['sw_version' ],
578- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
578+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
579579 }
580580 }
581581
@@ -593,7 +593,7 @@ def send_discovery_topics(sensor_mac, wait=True):
593593 'hw_version' : attr ['hw_version' ],
594594 'name' : attr ['name' ],
595595 'sw_version' : attr ['sw_version' ],
596- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
596+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
597597 }
598598 }
599599
@@ -610,7 +610,7 @@ def send_discovery_topics(sensor_mac, wait=True):
610610 'hw_version' : attr ['hw_version' ],
611611 'name' : attr ['name' ],
612612 'sw_version' : attr ['sw_version' ],
613- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
613+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
614614 }
615615 }
616616 else :
@@ -630,7 +630,7 @@ def send_discovery_topics(sensor_mac, wait=True):
630630 'hw_version' : attr ['hw_version' ],
631631 'name' : attr ['name' ],
632632 'sw_version' : attr ['sw_version' ],
633- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
633+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
634634 }
635635 }
636636 entity_payloads ['battery' ] = {
@@ -645,7 +645,7 @@ def send_discovery_topics(sensor_mac, wait=True):
645645 'hw_version' : attr ['hw_version' ],
646646 'name' : attr ['name' ],
647647 'sw_version' : attr ['sw_version' ],
648- 'via_device' : "wyzesense2mqtt_bridge_{WYZESENSE_DONGLE.MAC}"
648+ 'via_device' : f "wyzesense2mqtt_bridge_{ WYZESENSE_DONGLE .MAC } "
649649 }
650650 }
651651
0 commit comments