Parcourir la source

Rename Eurom SaniWall 2000 to Eurom Wall Designheat 2000.

Per edits to issue #75.

Use legacy_type as backward compatible link - at least until someone requests the real Saniwall 2000 if it is not compatible.
Jason Rumney il y a 4 ans
Parent
commit
cddfcdf691

+ 2 - 1
custom_components/tuya_local/devices/eurom_saniwall2000_heater.yaml → custom_components/tuya_local/devices/eurom_walldesignheat2000_heater.yaml

@@ -1,4 +1,5 @@
-name: Eurom SaniWall 2000 Heater
+name: Eurom Wall Designheat 2000 heater
+legacy_type: eurom_saniwall2000_heater
 primary_entity:
   entity: climate
   dps:

+ 1 - 1
tests/const.py

@@ -27,7 +27,7 @@ EUROM_600_HEATER_PAYLOAD = {"1": True, "2": 15, "5": 18, "6": 0}
 
 EUROM_601_HEATER_PAYLOAD = {"1": True, "2": 21, "3": 20, "6": False, "13": 0}
 
-EUROM_SANIWALL2000_HEATER_PAYLOAD = {
+EUROM_WALLDESIGNHEAT2000_HEATER_PAYLOAD = {
     "1": True,
     "2": 21,
     "3": 19,

+ 4 - 3
tests/devices/test_eurom_saniwall2000_heater.py → tests/devices/test_eurom_walldesignheat2000_heater.py

@@ -13,7 +13,7 @@ from homeassistant.components.climate.const import (
 )
 from homeassistant.const import STATE_UNAVAILABLE
 
-from ..const import EUROM_SANIWALL2000_HEATER_PAYLOAD
+from ..const import EUROM_WALLDESIGNHEAT2000_HEATER_PAYLOAD
 from ..helpers import assert_device_properties_set
 from .base_device_tests import TuyaDeviceTestCase
 
@@ -24,12 +24,13 @@ PRESET_DPS = "4"
 SWING_DPS = "7"
 
 
-class TestEuromSaniWall2000Heater(TuyaDeviceTestCase):
+class TestEuromWallDesignheat2000Heater(TuyaDeviceTestCase):
     __test__ = True
 
     def setUp(self):
         self.setUpForConfig(
-            "eurom_saniwall2000_heater.yaml", EUROM_SANIWALL2000_HEATER_PAYLOAD
+            "eurom_walldesignheat2000_heater.yaml",
+            EUROM_WALLDESIGNHEAT2000_HEATER_PAYLOAD,
         )
         self.subject = self.entities.get("climate")