String formatting improvements (#33635)
* String formatting improvements * Found another one
This commit is contained in:
1 parent
025cce3445
commit
e8a0abd107
39 files changed
+52
-56
No files matched your search
@@ -69,14 +69,12 @@ class ImageProcessingSsocr(ImageProcessingEntity):
|
||||
if name:
|
||||
self._name = name
|
||||
else:
|
||||
self._name = "SevenSegment OCR {0}".format(
|
||||
split_entity_id(camera_entity)[1]
|
||||
)
|
||||
self._name = "SevenSegment OCR {}".format(split_entity_id(camera_entity)[1])
|
||||
self._state = None
|
||||
|
||||
self.filepath = os.path.join(
|
||||
self.hass.config.config_dir,
|
||||
"ssocr-{0}.png".format(self._name.replace(" ", "_")),
|
||||
"ssocr-{}.png".format(self._name.replace(" ", "_")),
|
||||
)
|
||||
crop = [
|
||||
"crop",
|
||||
|
||||
Reference in new issue
Block a user