Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform

SLOW_SETUP_MAX_WAIT, loop=hass.loop)


 "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for

return fut.result()


 "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run

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


 "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/netatmo.py", line 77, in setup_platform

if module_name not in data.get_module_names():


 "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/netatmo.py", line 293, in get_module_names

return self.data.keys()
AttributeError: 'NoneType' object has no attribute 'keys'

Traceback (most recent call last):


 "manage.py", line 22, in <module>

execute_from_command_line(sys.argv)


 "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line

utility.execute()


 "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv

self.execute(*args, **cmd_options)


 "/usr/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 63, in execute

return super(Command, self).execute(*args, **options)


 "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute

output = self.handle(*args, **options)


 "/usr/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 183, in handle

self.UserModel._default_manager.db_manager(database).create_superuser(**user_data)


 "/usr/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 168, in create_superuser

return self._create_user(username, email, password, **extra_fields)


 "/usr/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 148, in _create_user

username = self.model.normalize_username(username)
AttributeError: type object 'User' has no attribute 'normalize_username'
