Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: ignore pylint warning
Browse files Browse the repository at this point in the history
CodeMakerLi authored Dec 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 679f277 commit 4b19177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/xiaomi_home/miot/miot_device.py
Original file line number Diff line number Diff line change
@@ -624,6 +624,7 @@ def unit_convert(self, spec_unit: str) -> Optional[str]:

# Handle UnitOfConductivity separately since it might not be available in all HA versions
try:
# pylint: disable=import-outside-toplevel
from homeassistant.const import UnitOfConductivity
unit_map['μS/cm'] = UnitOfConductivity.MICROSIEMENS_PER_CM
except ImportError:

0 comments on commit 4b19177

Please sign in to comment.