mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Changed yaml.load into yaml.safe_load (#9841)
This commit is contained in:
parent
a7f4bcc410
commit
64853bae32
@ -269,7 +269,7 @@ def load_config(path):
|
|||||||
calendars = {}
|
calendars = {}
|
||||||
try:
|
try:
|
||||||
with open(path) as file:
|
with open(path) as file:
|
||||||
data = yaml.load(file)
|
data = yaml.safe_load(file)
|
||||||
for calendar in data:
|
for calendar in data:
|
||||||
try:
|
try:
|
||||||
calendars.update({calendar[CONF_CAL_ID]:
|
calendars.update({calendar[CONF_CAL_ID]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user