diff --git a/me.s3lph.spaceapi/spaceapi.py b/me.s3lph.spaceapi/spaceapi.py index d46327d..1da1524 100644 --- a/me.s3lph.spaceapi/spaceapi.py +++ b/me.s3lph.spaceapi/spaceapi.py @@ -97,8 +97,8 @@ class SpaceapiBot(Plugin): try: fmt = { 'lastchange': datetime.fromtimestamp(state['state']['lastchange']).strftime('%H:%M'), - 'known_users': state.get('state', {}).get('sensors', {}).get('people_now_present', [{}])[0].get('names', ""), - 'user_cnt': state.get('state', {}).get('sensors', {}).get('people_now_present', [{}])[0].get('value', 0) + 'known_users': state.get('sensors', {}).get('people_now_present', [{}])[0].get('names', ""), + 'user_cnt': state.get('sensors', {}).get('people_now_present', [{}])[0].get('value', 0) } if state['state']['open']: body = self.config['messages']['open'].format(**fmt)