diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ff0eca..0d9180e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: args: - --skip="./.*,*.json" - --quiet-level=4 - - -L ba,celcius,hass + - -L ba,hass exclude_types: [json] - repo: https://github.com/PyCQA/flake8 rev: 4.0.1 diff --git a/pyhilo/const.py b/pyhilo/const.py index 6ea3751..92ab72a 100755 --- a/pyhilo/const.py +++ b/pyhilo/const.py @@ -195,7 +195,7 @@ } HILO_UNIT_CONVERSION: Final = { - "Celcius": "°C", + "Celsius": "°C", "DB": "dB", "Integer": "dB", "Mbar": "mbar", @@ -208,7 +208,7 @@ "BatteryPercent": "Percentage", "Co2": "PPM", "ColorTemperature": "Integer", - "CurrentTemperature": "Celcius", + "CurrentTemperature": "Celsius", "Disconnected": "null", "DrmsState": "OnOff", "firmwareVersion": "null", @@ -216,8 +216,8 @@ "Hue": "Integer", "Humidity": "Percentage", "Intensity": "Percentage", - "MaxTempSetpoint": "Celcius", - "MinTempSetpoint": "Celcius", + "MaxTempSetpoint": "Celsius", + "MinTempSetpoint": "Celsius", "Noise": "DB", "onlineStatus": "null", "OnOff": "OnOff", @@ -225,7 +225,7 @@ "Pressure": "Mbar", "Saturation": "Integer", "Status": "OnOff", - "TargetTemperature": "Celcius", + "TargetTemperature": "Celsius", "Unpaired": "null", "WifiStatus": "Integer", "zigBeePairingActivated": "OnOff",