mirror of
https://github.com/Andre0512/pyhOn.git
synced 2026-08-08 10:44:35 +00:00
Merge 4d29484d61 into 59e3d9949f
This commit is contained in:
commit
68b17814fa
|
|
@ -144,7 +144,6 @@ class HonCommand:
|
||||||
ancillary_params.pop("programRules", None)
|
ancillary_params.pop("programRules", None)
|
||||||
if "prStr" in params:
|
if "prStr" in params:
|
||||||
params["prStr"] = self._category_name.upper()
|
params["prStr"] = self._category_name.upper()
|
||||||
self.appliance.sync_command_to_params(self.name)
|
|
||||||
try:
|
try:
|
||||||
result = await self.api.send_command(
|
result = await self.api.send_command(
|
||||||
self._appliance,
|
self._appliance,
|
||||||
|
|
@ -156,6 +155,7 @@ class HonCommand:
|
||||||
if not result:
|
if not result:
|
||||||
_LOGGER.error(result)
|
_LOGGER.error(result)
|
||||||
raise ApiError("Can't send command")
|
raise ApiError("Can't send command")
|
||||||
|
self.appliance.sync_command_to_params(self.name)
|
||||||
except NoAuthenticationException:
|
except NoAuthenticationException:
|
||||||
_LOGGER.error("No Authentication")
|
_LOGGER.error("No Authentication")
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue