jrester / tesla_powerwall

Python API for Tesla Powerwall
MIT License
73 stars 25 forks source link

Typo in error.py #45

Closed ErikWOlson2 closed 1 year ago

ErikWOlson2 commented 1 year ago

In error.py (v0.3.19):

class MeterNotAvailableError(PowerwallError):
    def __init__(self, meter: MeterType, available_meters: List[MeterType]):
        self.mete: MeterType = meter
        self.available_meters: List[MeterType] = available_meters
        super().__init__(
            "Meter {} is not available at your powerwall. Following meters are available: {} ".format(
                meter.value, available_meters
            )
        )

Should "self.mete: MeterType = meter" instead be "self.meter: MeterType = meter" ?

jrester commented 1 year ago

thanks, good catch. I fixed it ;)