Debugging set_energy_source

This commit is contained in:
Khalim Conn-Kowlessar 2024-02-16 14:28:13 +00:00
parent 4fb479d3c1
commit 1f0dea980f

View file

@ -761,7 +761,7 @@ class Property:
# If the tariff explicitly indicates electricity use without a dual indication and mains_gas_flag is not True
# We check for the common electricity tariffs
if not self.data["mains_gas_flag"] and self.data["energy_tariff"] in [
if not self.data["mains-gas-flag"] and self.data["energy-tariff"] in [
"Single", "off-peak 7 hour", "off-peak 10 hour", "off-peak 18 hour", "standard tariff", "24 hour"
]:
energy_source = "electricity"