fix crash when calendar is already configured in config file
This commit is contained in:
@@ -20,6 +20,7 @@ class MyMuellDataModel(object):
|
||||
return json.loads(str(response.read(), encoding='utf-8'))
|
||||
|
||||
def get_events(self, city_id, area_id):
|
||||
self.client.connect()
|
||||
self.client.request('GET', '/mmapp/loxone/lox.php?r=dates/0&city_id={city_id}&area_id={area_id}'.format(city_id=city_id, area_id=area_id))
|
||||
response = self.client.getresponse()
|
||||
ret = str(response.read(), encoding='utf-8')
|
||||
|
||||
Reference in New Issue
Block a user