X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/a36c0e8d8d94eae0353e5bff14ac837e17139671..71dc2962df1f5a90752c1dedc135bba82e1b3b7a:/examples/light.py?ds=inline diff --git a/examples/light.py b/examples/light.py index 3442fb4..b18a78b 100755 --- a/examples/light.py +++ b/examples/light.py @@ -1,8 +1,14 @@ #!/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',