Explorar o código

Fix UnitOfArea importing

Jason Rumney hai 1 ano
pai
achega
37a4801ff8
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      custom_components/tuya_local/helpers/mixin.py
  2. 2 2
      requirements-dev.txt

+ 1 - 1
custom_components/tuya_local/helpers/mixin.py

@@ -5,8 +5,8 @@ Mixins to make writing new platforms easier
 import logging
 import logging
 
 
 from homeassistant.const import (
 from homeassistant.const import (
-    AREA_SQUARE_METERS,
     CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
     CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
+    UnitOfArea,
     UnitOfTemperature,
     UnitOfTemperature,
 )
 )
 from homeassistant.helpers.entity import EntityCategory
 from homeassistant.helpers.entity import EntityCategory

+ 2 - 2
requirements-dev.txt

@@ -1,10 +1,10 @@
 fuzzywuzzy
 fuzzywuzzy
 levenshtein
 levenshtein
-pytest-homeassistant-custom-component>=0.13.181
+pytest-homeassistant-custom-component>=0.13.190
 pytest
 pytest
 pytest-asyncio
 pytest-asyncio
 pytest-cov
 pytest-cov
 ruff
 ruff
 tinytuya~=1.15.1
 tinytuya~=1.15.1
-tuya-device-sharing-sdk>=0.1.9,<=0.2.99
+tuya-device-sharing-sdk~=0.2.1
 yamllint
 yamllint