Resolve merge conflicts for adding BME680 #441
Reference in New Issue
Block a user
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sorry for bursting in...
Here's a mergable version of PR #253
I can't test this currently (at least not on real hw), but maybe it helps someone else at testing.
can you also add the bme680 library to the dependencies in
setup.py?Also, remove any dead (e.g. commented) code.
thanks!
@@ -978,45 +978,58 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplatePdef get_sensor_data(self, sensor):the indentation for
airquality = 0is incorrect in this file (it has an extra space)@@ -0,0 +1,86 @@import bme680the indentation for this file is not consistent and should be 4 spaces everywhere.
@@ -978,45 +978,58 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplatePdef get_sensor_data(self, sensor):Thanks for the review. I fixed both indent errors, hope it's all correct (I'm not all too familiar with github + haven't even run the code yet)
@@ -978,45 +978,58 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplatePdef get_sensor_data(self, sensor):no, i still see incorrect indentation
@@ -978,45 +978,58 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplatePdef get_sensor_data(self, sensor):Darn, those tabs :/
I think it also makes sense to use
sys.executablelike I did in the bme280 PR here: https://github.com/vitormhenrique/OctoPrint-Enclosure/pull/444/files#diff-a2404d7993f889e484a332d17e5f97235b6705017e48dfeefcc0161540f88272I'll add a PR to fix this in all other code as well once this PR is merged.
I'm not a python expert, but you sound like you know what you're doing so I basically just copy&pasted your code, if that's ok.
thanks! looks good to me.
@@ -0,0 +1,86 @@import bme680oh. these parentheses are not needed (same for line 75)
@@ -0,0 +1,86 @@import bme680Okay =)