Total Connect 2 Alarm Night Arming Issue

Hello, I have been using Total Connect 2.0 Alarm integration in HA, however I am not able to do night arming. I tried using it with and without the code (#7) but to no avail. I am wondering if this code change has been released at Fix armed_night logic in totalconnect alarm and add tests by austinmroczek · Pull Request #50694 · home-assistant/core · GitHub which appears to address my problem according to its description - Fixes a logic flaw in totalconnect alarm_control_panel that always set armed_home instead of armed_night

Thanks very much

Here is the log stack trace

2021-08-06 19:13:27 ERROR (MainThread) [homeassistant.components.script.activate_night_arming] Activate Night Arming: Error executing script. Error for call_service at pos 1: TotalConnect failed to arm night Home.

2021-08-06 19:13:27 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140472971278368] TotalConnect failed to arm night Home.

Traceback (most recent call last):

File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 185, in handle_call_service

await hass.services.async_call(

File “/usr/src/homeassistant/homeassistant/core.py”, line 1491, in async_call

task.result()

File “/usr/src/homeassistant/homeassistant/core.py”, line 1526, in _execute_service

await handler.job.target(service_call)

File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 278, in service_handler

await script_entity.async_turn_on(

File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 382, in async_turn_on

await coro

File “/usr/src/homeassistant/homeassistant/components/script/init.py”, line 409, in _async_run

return await self.script.async_run(script_vars, context)

File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 1219, in async_run

await asyncio.shield(run.async_run())

File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 353, in async_run

await self._async_step(log_exceptions=False)

File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 371, in _async_step

await getattr(self, handler)()

File “/usr/src/homeassistant/homeassistant/helpers/script.py”, line 571, in _async_call_service_step

await service_task

File “/usr/src/homeassistant/homeassistant/core.py”, line 1491, in async_call

task.result()

File “/usr/src/homeassistant/homeassistant/core.py”, line 1526, in _execute_service

await handler.job.target(service_call)

File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 213, in handle_service

await self.hass.helpers.service.entity_service_call(

File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 658, in entity_service_call

future.result() # pop exception if have

File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 856, in async_request_call

await coro

File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 695, in _handle_entity_call

await result

File “/usr/src/homeassistant/homeassistant/components/alarm_control_panel/init.py”, line 180, in async_alarm_arm_night

await self.hass.async_add_executor_job(self.alarm_arm_night, code)

File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run

result = self.fn(*self.args, **self.kwargs)

File “/usr/src/homeassistant/homeassistant/components/totalconnect/alarm_control_panel.py”, line 138, in alarm_arm_night

raise HomeAssistantError(f"TotalConnect failed to arm night {self._name}.")

homeassistant.exceptions.HomeAssistantError: TotalConnect failed to arm night Home.