Skip to content

Commit 3466827

Browse files
authored
fix: remove unnecessary local image file saving (#12)
1 parent bfda50d commit 3466827

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

custom_components/gicisky/imagegen.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -614,12 +614,12 @@ def customimage(entity_id, device, service, hass):
614614
img = img.rotate(-rotate, expand=True)
615615
rgb_image = img.convert('RGB')
616616
patha = os.path.join(os.path.dirname(__file__), entity_id + '.jpg')
617-
pathb = get_image_path(hass, entity_id)
618-
pathc = get_image_folder(hass)
619-
isExist = os.path.exists(pathc)
620-
if not isExist:
621-
os.makedirs(pathc)
622-
rgb_image.save(pathb, format='JPEG', quality="maximum")
617+
# pathb = get_image_path(hass, entity_id)
618+
# pathc = get_image_folder(hass)
619+
# isExist = os.path.exists(pathc)
620+
# if not isExist:
621+
# os.makedirs(pathc)
622+
# rgb_image.save(pathb, format='JPEG', quality="maximum")
623623
# shutil.copy2(patha,pathb)
624624

625625
return rgb_image

0 commit comments

Comments
 (0)