Skip to content

Battery module: DuplicateOptionError #877

@4goettma

Description

@4goettma

After a recent system update on Arch Linux, the battery module outputs
{"full_text": "BatteryChecker: DuplicateOptionError: While reading from '<string>' [line 17]: option 'TYPE' in section 'id10t' already exists", "color": "#FF0000", "name": "i3pystatus.battery.BatteryChecker", "instance": "136733527446192", "markup": "none"}

The string "id10t" originates from https://github.com/enkore/i3pystatus/blob/current/i3pystatus/battery.py#L27
ChatGPT suggested to modify line 21 to super().__init__(default_section="id10t", strict=False) (adding strict=False) but I'm not sure if this is a reasonable fix regarding side effects (it works for me right now at least).

I'm using i3pystatus-git 3.35.r407.gf3c539a-5 installed from the AUR.

I didn't managed yet to find the cause so here is the list of recently upgraded packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions