diff --git a/BatteryPy/windows_batterypy.py b/BatteryPy/windows_batterypy.py index 2fa163d..6ca12ab 100644 --- a/BatteryPy/windows_batterypy.py +++ b/BatteryPy/windows_batterypy.py @@ -26,7 +26,7 @@ import platform import subprocess import datetime -from exceptions import NotSupportedPlatform, NotSupportedDriver, NotSupportedDeviceType +from exceptions import NotSupportedDriver, NotSupportedDeviceType class Battery: @@ -36,9 +36,6 @@ def __init__(self): # CHECK PLATFORM COMPATIBILITY _platform = platform.system() - if _platform not in supported_platforms: - raise NotSupportedPlatform(_platform) - # CHECK IF THE 'powercfg' is enabled _powercfg_output = subprocess.check_output(["powercfg", "/L"], text=True) @@ -268,7 +265,7 @@ def get_all_info(self) -> dict: """ This method will return all information that BatteryPy can retrieve""" # DEFINE THE INFORMATION DICT - return {'python_version': platform.python_version(), 'BatteryPy_version': VERSION, + return {'python_version': platform.python_version(), 'BatteryPy_version': '1.0.1', 'battery_manufacturer': self.manufacturer, 'battery_chemistry': self.chemistry, 'battery_voltage': self.get_current_voltage(False), 'friendly_battery_voltage': self.get_current_voltage(True),