Giter Club home page Giter Club logo

Comments (4)

dckiller51 avatar dckiller51 commented on June 30, 2024

Je ne peux pas corriger cette erreur mais normalement vous devriez avoir votre bodyscale.xxxx à créer. J'espère qu'un développeur trouvera une solution.
You should not have a problem with this error.

from bodymiscale.

horve000 avatar horve000 commented on June 30, 2024

Same error here.

Logger: homeassistant.setup
Source: custom_components/bodymiscale/init.py:280
First occurred: 16:45:22 (1 occurrences)
Last logged: 16:45:22

Error during setup of component bodymiscale
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/config/custom_components/bodymiscale/init.py", line 114, in async_setup
await component.async_add_entities(entities)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 317, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 321, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/config/custom_components/bodymiscale/init.py", line 280, in state_attributes
ATTR_WEIGHT: "{:.2f}".format(weight),
TypeError: unsupported format string passed to NoneType.format

from bodymiscale.

phil-schneider avatar phil-schneider commented on June 30, 2024

I have exactly the same problem.
Installed via HACS, setup all files.
Data is send from scale to esphome to home assistant. I can see my weight and impedance.
But this integration is showing the error right after booting.

I can also see a log message with this:
File "/config/custom_components/bodymiscale/init.py", line 228, in _check_max if value > max_value: TypeError: '>' not supported between instances of 'str' and 'float'

Maybe you can provide some beta version with more debug logs that are maybe helpful

from bodymiscale.

dckiller51 avatar dckiller51 commented on June 30, 2024

Update v0.0.4 fix errors

https://github.com/dckiller51/bodymiscale/releases/tag/v0.0.4 or Update via HACS

from bodymiscale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.