<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _home_assistant_config(self):
 """ Creates home assistant configuration for the known devices """

        devices = {}
        for scs_id, dev in self._devices.items():
            devices[dev['ha_id']] = {
                'name': dev['name'],
                'scs_id': scs_id}

        return {'devices': devices}