The steps as I understand them:
- Create a custom quirk dir in HA, e.g.,
/config/custom_zha_quirks
- In configuration.yaml, point to this directory:
zha:
custom_quirks_path: /config/custom_zha_quirks/
- in this directory, create the python file with content of the quirk