Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component

result = await task


 "/config/custom_components/bodymiscale/__init__.py", line 114, in async_setup

await component.async_add_entities(entities)


 "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 317, in async_add_entities

await asyncio.gather(*tasks)


 "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in _async_add_entity

await entity.add_to_platform_finish()


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish

self.async_write_ha_state()


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state

self._async_write_ha_state()


 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 321, in _async_write_ha_state

attr.update(self.state_attributes or {})


 "/config/custom_components/bodymiscale/__init__.py", line 280, in state_attributes

ATTR_WEIGHT: "{:.2f}".format(weight),
TypeError: unsupported format string passed to NoneType.__format__

Traceback (most recent call last):


 "/usr/lib64/python3.6/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)
TypeError: test_modify_form() missing 1 required positional argument: 'tdata'
