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:
springstan authored and GitHub committed 2020-03-10 23:34:54 +01:00
1 parent bbe0f75336
commit ba0aaeeddb
34 files changed
+62 -80

No files matched your search

@@ -61,7 +61,7 @@ class MicrosoftFaceIdentifyEntity(ImageProcessingFaceEntity):
if name:
self._name = name
else:
self._name = "MicrosoftFace {0}".format(split_entity_id(camera_entity)[1])
self._name = f"MicrosoftFace {split_entity_id(camera_entity)[1]}"
@property
def confidence(self):