File tree 2 files changed +9
-12
lines changed
custom_components/daikin_onecta
2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -350,10 +350,15 @@ def get_hvac_modes(self):
350
350
modes = [HVACMode .OFF ]
351
351
operationmode = self .operation_mode ()
352
352
if operationmode is not None :
353
- for mode in operationmode ["values" ]:
354
- ha_mode = DAIKIN_HVAC_TO_HA [mode ]
355
- if ha_mode not in modes :
356
- modes .append (ha_mode )
353
+ if operationmode ["settable" ] is True :
354
+ for mode in operationmode ["values" ]:
355
+ ha_mode = DAIKIN_HVAC_TO_HA [mode ]
356
+ if ha_mode not in modes :
357
+ modes .append (ha_mode )
358
+ currentmode = operationmode ["value" ]
359
+ ha_currentmode = DAIKIN_HVAC_TO_HA [currentmode ]
360
+ if ha_currentmode not in modes :
361
+ modes .append (ha_currentmode )
357
362
return modes
358
363
359
364
async def async_set_hvac_mode (self , hvac_mode ):
Original file line number Diff line number Diff line change 70279
70279
]),
70280
70280
'hvac_modes': list([
70281
70281
<HVACMode.OFF: 'off'>,
70282
- <HVACMode.FAN_ONLY: 'fan_only'>,
70283
70282
<HVACMode.HEAT: 'heat'>,
70284
- <HVACMode.COOL: 'cool'>,
70285
- <HVACMode.HEAT_COOL: 'heat_cool'>,
70286
- <HVACMode.DRY: 'dry'>,
70287
70283
]),
70288
70284
'max_temp': 31,
70289
70285
'min_temp': 10,
70341
70337
'friendly_name': 'Studio Room Temperature',
70342
70338
'hvac_modes': list([
70343
70339
<HVACMode.OFF: 'off'>,
70344
- <HVACMode.FAN_ONLY: 'fan_only'>,
70345
70340
<HVACMode.HEAT: 'heat'>,
70346
- <HVACMode.COOL: 'cool'>,
70347
- <HVACMode.HEAT_COOL: 'heat_cool'>,
70348
- <HVACMode.DRY: 'dry'>,
70349
70341
]),
70350
70342
'max_temp': 31,
70351
70343
'min_temp': 10,
You can’t perform that action at this time.
0 commit comments