How to patch python file if HA is in the docker

I have installed raspberrian on my raspberry pi and after that I insalled HA in th docker containers. Now I want to patch one of py files to make my led lamp work. I tried to execute bash inside of ‘homeassistant’ container. But it understand nothing. I can’t run any editors I know (nano/vim). I can’t install any app (nano/vim). Which is the proper way to edit python files in the HA container?

vi is installed in the official container for Rapsberry Pi. It basically works like vim.

1 Like

Yes, I’ve already found it. Thanks a lot.