File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
custom_components/neviweb130 Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "neviweb130" : {
3- "version" : " 3.0.3 " ,
3+ "version" : " 3.0.4 " ,
44 "local_location" : " /custom_components/neviweb130/__init__.py" ,
55 "remote_location" : " https://github.com/claudegel/sinope-130/tree/master/custom_components/__init__.py" ,
66 "visit_repo" : " https://github.com/claudegel/sinope-130" ,
Original file line number Diff line number Diff line change 77 "dependencies" : [],
88 "requirements" : [],
99 "iot_class" : " cloud_polling" ,
10- "version" : " 3.0.3 " ,
10+ "version" : " 3.0.4 " ,
1111 "homeassistant" : " 2025.1.1"
1212}
Original file line number Diff line number Diff line change 3838
3939"""Default parameters values."""
4040
41- VERSION = "3.0.3 "
41+ VERSION = "3.0.4 "
4242SCAN_INTERVAL = timedelta (seconds = 540 )
4343HOMEKIT_MODE = False
4444STAT_INTERVAL = 1800
Original file line number Diff line number Diff line change @@ -1078,6 +1078,8 @@ def update(self):
10781078 + device_data [ATTR_WATER_LEAK_STATUS ]
10791079 + " for device: "
10801080 + self ._name
1081+ + ", id: "
1082+ + str (self ._id )
10811083 + ", Sku: "
10821084 + self ._sku
10831085 + ", Leak sensor disconnected."
@@ -1208,6 +1210,16 @@ def update(self):
12081210 if "error" not in device_data or device_data is not None :
12091211 if "errorCode" not in device_data :
12101212 self ._angle = device_data [ATTR_ANGLE ]["value" ]
1213+ if self ._angle == - 2 :
1214+ self .notify_ha (
1215+ "Warning: Tank monitor gauge diconnected: "
1216+ + " for device: "
1217+ + self ._name
1218+ + ", id: "
1219+ + str (self ._id )
1220+ + ", Sku: "
1221+ + self ._sku
1222+ )
12111223 self ._sampling = device_data [ATTR_ANGLE ][ATTR_SAMPLING ]
12121224 self ._tank_percent = device_data [ATTR_TANK_PERCENT ]
12131225 self ._tank_type = device_data [ATTR_TANK_TYPE ]
@@ -1234,6 +1246,8 @@ def update(self):
12341246 + str (device_data [ATTR_ERROR_CODE_SET1 ]["raw" ])
12351247 + " for device: "
12361248 + self ._name
1249+ + ", id: "
1250+ + str (self ._id )
12371251 + ", Sku: "
12381252 + self ._sku
12391253 )
You can’t perform that action at this time.
0 commit comments