Traceback (most recent call last):


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state

await self.async_device_update()


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update

await self.hass.async_add_executor_job(self.update)


 "/opt/rh/rh-python36/root/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/components/broadlink/switch.py", line 312, in update

self._state = self._parent_device.get_outlet_status(self._slot)


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/components/broadlink/switch.py", line 325, in get_outlet_status

return self._states['s{}'.format(slot)]
TypeError: 'NoneType' object is not subscriptable

```Traceback (most recent call last):


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

train_logger = SummaryWriter(log_dir = os.path.join(args.save, 'train'), comment = 'training')


 "/home/ywen232625/anaconda3/envs/flownet2/lib/python3.6/site-packages/tensorboardX/writer.py", line 254, in __init__

self._get_file_writer()


 "/home/ywen232625/anaconda3/envs/flownet2/lib/python3.6/site-packages/tensorboardX/writer.py", line 310, in _get_file_writer

self.file_writer = 
Writer(logdir=self.logdir, **self.kwargs)
TypeError: __init__() got an unexpected keyword argument 'log_dir'
