Skip to content

KeyError '3' - Missing support for Zone 3 in G13 tariff #239

@tklakla

Description

@tklakla

Integration crashes when processing Zone 3 data from G13 tariff.

Error:
KeyError: '3'
File: sensor.py, line 255
zone = zone_names[consumption["Zone"]]

G13 tariff has 3 zones, but zone_names dictionary only includes zones 1 and 2.

Home Assistant version:
Integration version: v2.7.1
Meter ID: 590322429303033037

zone_names = {
"1": "peak",
"2": "off-peak",
"3": "super-peak" # ← Add this
}

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