Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dckiller51 committed Sep 22, 2021
1 parent 2868cd7 commit abb652e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions custom_components/bodymiscale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

import voluptuous as vol

from homeassistant.components.recorder.models import States
from homeassistant.components.recorder.util import execute, session_scope
from homeassistant.const import (
ATTR_UNIT_OF_MEASUREMENT,
CONF_SENSORS,
Expand Down Expand Up @@ -293,7 +291,7 @@ def state_attributes(self):

if impedance is None and weight is None:
pass
elif problem_sensor == "weight unavailable":
elif problem_sensor == "weight unavailable" or problem_sensor == "impedance unavailable":
pass
elif model == "181D" and problem == "ok" or model == "181B" and problem_sensor == "impedance low" or model == "181B" and problem_sensor == "impedance unavailable" or impedance is None:
lib = body_metrics.bodyMetrics(weight, height, age, gender, 0)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bodymiscale/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Base component constants
NAME = "Body Xiaomi Miscale Esphome"
DOMAIN = "bodymiscale"
VERSION = "1.1.1"
VERSION = "1.1.2"

ISSUE_URL = "https://github.com/dckiller51/bodymiscale/issues"
DOC_URL = "https://github.com/dckiller51/bodymiscale"
Expand Down
6 changes: 4 additions & 2 deletions custom_components/bodymiscale/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"name": "BodyMiScale",
"documentation": "https://github.com/dckiller51/bodymiscale",
"issue_tracker": "https://github.com/dckiller51/bodymiscale/issues",
"after_dependencies": [],
"dependencies": [],
"codeowners": ["@dckiller51"],
"version": "1.1.1"
"requirements": [],
"iot_class": "local_push",
"version": "1.1.2"
}

0 comments on commit abb652e

Please sign in to comment.