Follow-up fixes for !10 - boolean sysfs attr
Made an absolute dog's dinner of the original commit in part because tests weren't actually run as part of the CI.
Made an absolute dog's dinner of the original commit in part because tests weren't actually run as part of the CI.