- removed guards on the ove set temp/set op (supported modes seems sufficient)

This commit is contained in:
Jack Simbach 2020-12-29 22:49:12 -05:00
parent e5044846c5
commit 7bbeeb679a
1 changed files with 25 additions and 27 deletions

View File

@ -133,7 +133,6 @@ class GeOven(GeWaterHeater):
async def async_set_operation_mode(self, operation_mode: str): async def async_set_operation_mode(self, operation_mode: str):
"""Set the operation mode.""" """Set the operation mode."""
if self.remote_enabled:
erd_cook_mode = COOK_MODE_OP_MAP.inverse[operation_mode] erd_cook_mode = COOK_MODE_OP_MAP.inverse[operation_mode]
# Pick a temperature to set. If there's not one already set, default to # Pick a temperature to set. If there's not one already set, default to
# good old 350F. # good old 350F.
@ -153,7 +152,6 @@ class GeOven(GeWaterHeater):
async def async_set_temperature(self, **kwargs): async def async_set_temperature(self, **kwargs):
"""Set the cook temperature""" """Set the cook temperature"""
if self.remote_enabled:
target_temp = kwargs.get(ATTR_TEMPERATURE) target_temp = kwargs.get(ATTR_TEMPERATURE)
if target_temp is None: if target_temp is None:
return return