Skip to content

Commit d16b7b1

Browse files
authored
merge: create release 0.5.6-beta2 (#74)
2 parents 0f2b5b9 + e5d155b commit d16b7b1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

custom_components/easycontrols/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"issue_tracker": "https://github.com/laszlojakab/homeassistant-easycontrols/issues",
77
"dependencies": [],
88
"config_flow": true,
9-
"version": "0.5.6-beta",
9+
"version": "0.5.6-beta2",
1010
"codeowners": ["@laszlojakab"],
1111
"requirements": ["eazyctrl==0.4"]
1212
}

custom_components/easycontrols/sensor.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,17 @@ def _get_string(self, value: int) -> str:
201201
'''
202202
if value is None:
203203
return None
204-
string = ''
204+
string: str = ''
205205
if value != 0:
206206
for item in self._flags.items():
207207
has_flag = (item[0] & value) == item[0]
208208
if has_flag:
209209
if string != '':
210210
string += '\n'
211211
string += item[1]
212+
else:
213+
string = '-'
214+
212215
return string
213216

214217
@property

0 commit comments

Comments
 (0)