Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 373, in validate_mapping

new_key = ckey(key_path, key)


 "/srv/homeassistant/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable

return schema(data)


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_validation.py", line 659, in validator

value = config[key]
TypeError: string indices must be integers

Traceback (most recent call last):


 "main.py", line 51, in <module>

map.save("/mnt/external_disk/Companies/B_Link/Project_code/Hopital_doc_app/Map_chart/main2.html")


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/branca/element.py", line 169, in save

html = root.render(**kwargs)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/branca/element.py", line 321, in render

child.render(**kwargs)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/folium/folium.py", line 370, in render

super(Map, self).render(**kwargs)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/branca/element.py", line 633, in render

element.render(**kwargs)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/branca/element.py", line 629, in render

figure.script.add_child(Element(script(self, kwargs)),


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/jinja2/runtime.py", line 575, in __call__

return self._invoke(arguments, autoescape)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 110, in _invoke

return original_invoke(self, arguments, autoescape)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke

rv = self._func(*arguments)


 "<template>", line 26, in macro


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/jinja2/filters.py", line 1078, in do_tojson

return htmlsafe_json_dumps(value, dumper=dumper, **options)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/site-packages/jinja2/utils.py", line 565, in htmlsafe_json_dumps

rv = dumper(obj, **kwargs) \


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/json/__init__.py", line 238, in dumps

**kw).encode(obj)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/home/young/anaconda3/envs/py36_chart_b/lib/python3.6/json/encoder.py", line 180, in default

o.__class__.__name__)
TypeError: Object of type 'int64' is not JSON serializable
