Use f-strings in integrations starting with "M" (#32271)
* Use f-strings in integrations starting with "M" * Format mqtt light init with black * Fix lint error * Fix pylint error * Restore constants * Update homeassistant/components/mqtt/discovery.py * Update homeassistant/components/mqtt/discovery.py * Update homeassistant/components/mqtt/discovery.py * Update homeassistant/components/mqtt/discovery.py * Format with Black
This commit is contained in:
1 parent
bbe0f75336
commit
ba0aaeeddb
34 files changed
+62
-80
No files matched your search
@@ -344,7 +344,7 @@ class MoldIndicator(Entity):
|
||||
elif crit_humidity < 0:
|
||||
self._state = "0"
|
||||
else:
|
||||
self._state = "{0:d}".format(int(crit_humidity))
|
||||
self._state = f"{int(crit_humidity):d}"
|
||||
|
||||
_LOGGER.debug("Mold indicator humidity: %s", self._state)
|
||||
|
||||
|
||||
Reference in new issue
Block a user