1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2025-06-29 00:30:31 +02:00

Merge upstream

This commit is contained in:
cn
2020-08-09 01:44:29 +02:00
11 changed files with 222 additions and 59 deletions

View File

@ -10,10 +10,11 @@ __version__ = '1.0.5'
# Export constants to global namespace
# so end-users can "from BME680 import NAME"
for key in constants.__dict__:
value = constants.__dict__[key]
if key not in globals():
globals()[key] = value
if hasattr(constants, '__dict__'):
for key in constants.__dict__:
value = constants.__dict__[key]
if key not in globals():
globals()[key] = value
class BME680(BME680Data):