Sfoglia il codice sorgente

Use consistent name for Purline Open Window Detection switch

Jason Rumney 5 anni fa
parent
commit
fc33234d35

+ 1 - 1
custom_components/tuya_local/purline_m100_heater/switch.py

@@ -12,7 +12,7 @@ from .const import (
 )
 
 
-class PurlinM100OpenWindowDetector(SwitchEntity):
+class PurlineM100OpenWindowDetector(SwitchEntity):
     """Representation of the Open Window Detection of a Purline M100 heater"""
 
     def __init__(self, device):

+ 2 - 2
tests/purline_m100_heater/test_switch.py

@@ -9,7 +9,7 @@ from custom_components.tuya_local.purline_m100_heater.const import (
     PROPERTY_TO_DPS_ID,
 )
 from custom_components.tuya_local.purline_m100_heater.switch import (
-    PurlinM100OpenWindowDetector,
+    PurlineM100OpenWindowDetector,
 )
 
 from ..const import PURLINE_M100_HEATER_PAYLOAD
@@ -22,7 +22,7 @@ class TestPulineOpenWindowDetector(IsolatedAsyncioTestCase):
         self.addCleanup(device_patcher.stop)
         self.mock_device = device_patcher.start()
 
-        self.subject = PurlinM100OpenWindowDetector(self.mock_device())
+        self.subject = PurlineM100OpenWindowDetector(self.mock_device())
 
         self.dps = PURLINE_M100_HEATER_PAYLOAD.copy()
         self.subject._device.get_property.side_effect = lambda id: self.dps[id]