Skip to content

Commit

Permalink
Merge pull request #32 from caternuson/iss31
Browse files Browse the repository at this point in the history
Fix emc2101_enums import
  • Loading branch information
FoamyGuy authored Sep 17, 2023
2 parents 52da43d + 4d15311 commit ac84a24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adafruit_emc2101/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def spinup_time(self, spin_time):
# Not importing at top level so the SpinupTime is not loaded
# unless it is required, and thus 1KB bytecode can be avoided.
# pylint: disable=import-outside-toplevel
from emc2101_enums import SpinupTime
from adafruit_emc2101.emc2101_enums import SpinupTime

if not SpinupTime.is_valid(spin_time):
raise TypeError("spinup_time must be a SpinupTime")
Expand Down Expand Up @@ -443,7 +443,7 @@ def spinup_drive(self, spin_drive):
# Not importing at top level so the SpinupDrive is not loaded
# unless it is required, and thus 1KB bytecode can be avoided.
# pylint: disable=import-outside-toplevel
from emc2101_enums import SpinupDrive
from adafruit_emc2101.emc2101_enums import SpinupDrive

if not SpinupDrive.is_valid(spin_drive):
raise TypeError("spinup_drive must be a SpinupDrive")
Expand Down Expand Up @@ -473,7 +473,7 @@ def conversion_rate(self, rate):
# Not importing at top level so the ConversionRate is not loaded
# unless it is required, and thus 1KB bytecode can be avoided.
# pylint: disable=import-outside-toplevel
from emc2101_enums import ConversionRate
from adafruit_emc2101.emc2101_enums import ConversionRate

if not ConversionRate.is_valid(rate):
raise ValueError("conversion_rate must be a `ConversionRate`")
Expand Down

0 comments on commit ac84a24

Please sign in to comment.