Traceback (most recent call last):

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/ext/tornado/web.py#L1592">ext\tornado\web.py</a>", line 1592, in _execute
result = yield result

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
value = future.result()

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/ext/tornado/gen.py#L1141">ext\tornado\gen.py</a>", line 1141, in run
yielded = self.gen.throw(*exc_info)

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/server/api/v2/base.py#L83">medusa\server\api\v2\base.py</a>", line 83, in async_call
content = yield IOLoop.current().run_in_executor(executor, prepared)

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
value = future.result()

 "C:\Python38\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/server/api/v2/providers.py#L58">medusa\server\api\v2\providers.py</a>", line 58, in get
provider_results = provider.cache.get_results(show_slug=show_slug, season=season, episode=episode)

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/tv/cache.py#L637">medusa\tv\cache.py</a>", line 637, in get_results
cache_db_con = self._get_db()

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/tv/cache.py#L141">medusa\tv\cache.py</a>", line 141, in _get_db
self.provider_db = CacheDBConnection(self.provider_id)

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/tv/cache.py#L103">medusa\tv\cache.py</a>", line 103, in __init__
self.addColumn(provider_id, column, data_type, default)

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/db.py#L425">medusa\db.py</a>", line 425, in addColumn
self.action('ALTER TABLE [%s] ADD %s %s' % (table, column, column_type))

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/db.py#L285">medusa\db.py</a>", line 285, in action
sql_results = self._execute(query, args, fetchall=fetchall, fetchone=fetchone)

 "C:\GitHub\Medusa\<a href="../blob/e6025de42a034b5887e5806fda210e30f5a1e150/medusa/db.py#L113">medusa\db.py</a>", line 113, in _execute
sql_results = cursor.execute(query)sqlite3.OperationalError: duplicate column name: version
Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/service.py", line 114, in async_prepare_call_from_config

domain_service = config[CONF_SERVICE_TEMPLATE].async_render(variables)


 "/usr/src/homeassistant/homeassistant/helpers/template.py", line 230, in async_render

raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'dict object' has no attribute 'to_state'
