@@ -10,65 +10,55 @@ class C4Climate(C4Entity):
1010
1111 async def getHVACState (self ):
1212 """Returns the current HVAC state (e.g., on/off or active mode)."""
13- return await self .director .getItemVariableValue (self .item_id ,
14- "HVAC_STATE" )
13+ return await self .director .getItemVariableValue (self .item_id , "HVAC_STATE" )
1514
1615 async def getFANState (self ):
1716 """Returns the current power state of the fan (True=on, False=off)."""
18- return await self .director .getItemVariableValue (self .item_id ,
19- "FAN_STATE" )
17+ return await self .director .getItemVariableValue (self .item_id , "FAN_STATE" )
2018
2119 # ------------------------
2220 # Mode Getters
2321 # ------------------------
2422
2523 async def getHVACMode (self ):
2624 """Returns the currently active HVAC mode."""
27- return await self .director .getItemVariableValue (self .item_id ,
28- "HVAC_MODE" )
25+ return await self .director .getItemVariableValue (self .item_id , "HVAC_MODE" )
2926
3027 async def getHVACModes (self ):
3128 """Returns a list of supported HVAC modes."""
32- return await self .director .getItemVariableValue (self .item_id ,
33- "HVAC_MODES_LIST" )
29+ return await self .director .getItemVariableValue (self .item_id , "HVAC_MODES_LIST" )
3430
3531 async def getFANMode (self ):
3632 """Returns the currently active fan mode."""
37- return await self .director .getItemVariableValue (self .item_id ,
38- "FAN_MODE" )
33+ return await self .director .getItemVariableValue (self .item_id , "FAN_MODE" )
3934
4035 async def getFANModes (self ):
4136 """Returns a list of supported fan modes."""
42- return await self .director .getItemVariableValue (self .item_id ,
43- "FAN_MODES_LIST" )
37+ return await self .director .getItemVariableValue (self .item_id , "FAN_MODES_LIST" )
4438
4539 # ------------------------
4640 # Setpoint Getters
4741 # ------------------------
4842
4943 async def getCoolSetpointF (self ):
5044 """Returns the cooling setpoint temperature in Fahrenheit."""
51- return await self .director .getItemVariableValue (self .item_id ,
52- "COOL_SETPOINT_F" )
45+ return await self .director .getItemVariableValue (self .item_id , "COOL_SETPOINT_F" )
5346
5447 async def getHeatSetpointF (self ):
5548 """Returns the heating setpoint temperature in Fahrenheit."""
56- return await self .director .getItemVariableValue (self .item_id ,
57- "HEAT_SETPOINT_F" )
49+ return await self .director .getItemVariableValue (self .item_id , "HEAT_SETPOINT_F" )
5850
5951 # ------------------------
6052 # Sensor Readings
6153 # ------------------------
6254
6355 async def getHumidity (self ):
6456 """Returns the current humidity percentage."""
65- return await self .director .getItemVariableValue (self .item_id ,
66- "HUMIDITY" )
57+ return await self .director .getItemVariableValue (self .item_id , "HUMIDITY" )
6758
6859 async def getCurrentTemperature (self ):
6960 """Returns the current ambient temperature in Fahrenheit."""
70- return await self .director .getItemVariableValue (self .item_id ,
71- "TEMPERATURE_F" )
61+ return await self .director .getItemVariableValue (self .item_id , "TEMPERATURE_F" )
7262
7363 # ------------------------
7464 # Setters / Commands
0 commit comments