Want to hide default capability and use custom icon; what do I do wrong here?

For quite some time I have been a happy user of my own fork of (an older version of) the P1 Smartmeter App (main difference: I have different drivers for electricity and gas), but lately I have been unsuccessful in fixing two annoyances (and I am even more annoyed that I can’t fix them myself :wink:) :

  1. I want to hide Athom’s default measure_power capability (by using "uiComponent": null?)
  2. I want to use a custom icon for gas

Below is the relevant part of my app.json:

{
  "drivers": [
    {
      "id": "p1-smartmeter-electricity",
      "capabilitiesOptions": {
        "measure_power": {
          "uiComponent": null
        }
      }
    },
    {
      "id": "p1-smartmeter-gas",
      "capabilities": [
        "meter_gas.measure"
      ],
      "capabilitiesOptions": {
        "meter_gas.measure": {
          "icon": "./assets/images/gas.svg"
        },
      }
    }
  ]
}

However, Athom’s default capability is still shown and my gas icon is not displayed.

What might I be doing wrong here?