Просмотр исходного кода

Rename inkbird_thermostat.yaml and drop the legacy_type from it.

This was recently introduced, and there is no reason currently to disambiguate
using a model number in there.
Jason Rumney 4 лет назад
Родитель
Сommit
c92c3d4935

+ 0 - 1
custom_components/tuya_local/devices/inkbird_ITC306A_thermostat.yaml → custom_components/tuya_local/devices/inkbird_thermostat.yaml

@@ -1,5 +1,4 @@
 name: Inkbird ITC-306A Thermostat
-legacy_type: inkbird_thermostat
 primary_entity:
   entity: climate
   dps:

+ 1 - 1
tests/devices/test_inkbird_thermostat.py

@@ -40,7 +40,7 @@ class TestInkbirdThermostat(IsolatedAsyncioTestCase):
         device_patcher = patch("custom_components.tuya_local.device.TuyaLocalDevice")
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
-        cfg = TuyaDeviceConfig("inkbird_ITC306A_thermostat.yaml")
+        cfg = TuyaDeviceConfig("inkbird_thermostat.yaml")
         entities = {}
         entities[cfg.primary_entity.entity] = cfg.primary_entity
         for e in cfg.secondary_entities():