turbokongen / hass-AMS

Custom component reading AMS through MBus adapter into HomeAssistant
44 stars 10 forks source link

fixes crashes if kaifa is not autodetected #87

Closed joernnilsson closed 1 year ago

joernnilsson commented 1 year ago

Fixes two crashes:

__init__.py line 270: detect_pkg is None if self.meter_manufacturer is not set to auto

kaifa.py line 43: in the case of Norwegian kaifa, parse_data is called without the required 3rd positional argument (__init__.py line 294)

turbokongen commented 1 year ago

Thank you 💯