Sfoglia il codice sorgente

Rename some more config files before releasing the migration.

Based on the initial request for Tadiran support, there seem to be other variants.
Based on error reports, there seem to be other variants of Kogan heaters also.

Avoid needing to redo the migration again later by renaming those now.
Jason Rumney 4 anni fa
parent
commit
934a756f37

+ 1 - 0
custom_components/tuya_local/devices/kogan_heater.yaml → custom_components/tuya_local/devices/kogan_kahtp_heater.yaml

@@ -1,4 +1,5 @@
 name: Kogan Panel Heater
 name: Kogan Panel Heater
+legacy_type: kogan_heater
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   dps:
   dps:

+ 1 - 0
custom_components/tuya_local/devices/tadiran_heatpump.yaml → custom_components/tuya_local/devices/tadiran_wind_heatpump.yaml

@@ -1,4 +1,5 @@
 name: Tadiran Wind 65/3P Air Conditioner
 name: Tadiran Wind 65/3P Air Conditioner
+legacy_type: tadiran_heatpump
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   dps:
   dps:

+ 2 - 2
tests/devices/test_kogan_heater.py → tests/devices/test_kogan_kahtp_heater.py

@@ -19,11 +19,11 @@ HVACMODE_DPS = "7"
 TIMER_DPS = "8"
 TIMER_DPS = "8"
 
 
 
 
-class TestGoldairKoganHeater(TuyaDeviceTestCase):
+class TestGoldairKoganKAHTPHeater(TuyaDeviceTestCase):
     __test__ = True
     __test__ = True
 
 
     def setUp(self):
     def setUp(self):
-        self.setUpForConfig("kogan_heater.yaml", KOGAN_HEATER_PAYLOAD)
+        self.setUpForConfig("kogan_kahtp_heater.yaml", KOGAN_HEATER_PAYLOAD)
         self.subject = self.entities.get("climate")
         self.subject = self.entities.get("climate")
         self.lock = self.entities.get("lock")
         self.lock = self.entities.get("lock")
 
 

+ 2 - 2
tests/devices/test_tadiran_heatpump.py → tests/devices/test_tadiran_wind_heatpump.py

@@ -21,11 +21,11 @@ HVACMODE_DPS = "4"
 FAN_DPS = "5"
 FAN_DPS = "5"
 
 
 
 
-class TestTadiranHeatpump(TuyaDeviceTestCase):
+class TestTadiranWindHeatpump(TuyaDeviceTestCase):
     __test__ = True
     __test__ = True
 
 
     def setUp(self):
     def setUp(self):
-        self.setUpForConfig("tadiran_heatpump.yaml", TADIRAN_HEATPUMP_PAYLOAD)
+        self.setUpForConfig("tadiran_wind_heatpump.yaml", TADIRAN_HEATPUMP_PAYLOAD)
         self.subject = self.entities.get("climate")
         self.subject = self.entities.get("climate")
 
 
     def test_supported_features(self):
     def test_supported_features(self):