import os
import sys
import ST7735
-import ltr559
+try:
+ # Transitional fix for breaking change in LTR559
+ from ltr559 import LTR559
+ ltr559 = LTR559()
+except ImportError:
+ import ltr559
from bme280 import BME280
from enviroplus import gas
import os
import sys
import ST7735
-import ltr559
+try:
+ # Transitional fix for breaking change in LTR559
+ from ltr559 import LTR559
+ ltr559 = LTR559()
+except ImportError:
+ import ltr559
from bme280 import BME280
from pms5003 import PMS5003, ReadTimeoutError as pmsReadTimeoutError
#!/usr/bin/env python
import time
-import ltr559
import logging
+try:
+ # Transitional fix for breaking change in LTR559
+ from ltr559 import LTR559
+ ltr559 = LTR559()
+except ImportError:
+ import ltr559
+
logging.basicConfig(
format='%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s',