Added test and small date fix.

This commit is contained in:
2026-03-19 22:59:45 +01:00 Verified
parent ffbb4d718f
commit 34a5582b58
11 changed files with 340 additions and 23 deletions
+4 -3
View File
@@ -7,7 +7,7 @@ from PIL import Image
from .epd4in2 import EPD, epdconfig
from .image_maker import eInkImage
logging.getLogger(__name__)
logger = logging.getLogger(__name__)
class Display:
@@ -23,7 +23,8 @@ class Display:
epd.Clear()
return epd
except Exception as e:
logging.error(f"eInk Display not found! | {e}")
logger.error(f"eInk Display not found! | {e}")
raise e
@staticmethod
def _wait_until(timestamp: str, absolute_date: datetime) -> None:
@@ -46,4 +47,4 @@ class Display:
self.e_Paper.display_4Gray(self.e_Paper.getbuffer_4Gray(image))
self.e_Paper.sleep()
except Exception as e:
logging.error(f"Failed displaying image - ERROR: {e}")
logger.error(f"Failed displaying image - ERROR: {e}")