Some Zigbee bugfixes

This commit is contained in:
Ziver Koc 2021-07-12 22:39:57 +02:00
parent bcc4133a31
commit 3cd96cfc82
2 changed files with 4 additions and 2 deletions

View file

@ -130,7 +130,7 @@ public class ZigBeeHalDataStore implements ZigBeeNetworkDataStore {
* A private data storage object connected to the DB schema.
*/
@DBBean.DBTable(ZIGBEE_NODE_TABLE)
private static class ZigbeeNodeDSO extends DBBean {
public static class ZigbeeNodeDSO extends DBBean {
protected String address;
protected String config;

View file

@ -56,7 +56,9 @@ public abstract class ZigbeeHalDeviceConfig implements HalDeviceConfig {
if (!(o instanceof ZigbeeHalDeviceConfig)) return false;
ZigbeeHalDeviceConfig that = (ZigbeeHalDeviceConfig) o;
return Objects.equals(zigbeeNodeAddressStr, that.zigbeeNodeAddressStr);
return this.getClass() == that.getClass() &&
Objects.equals(zigbeeNodeAddressStr, that.zigbeeNodeAddressStr) &&
this.getZigbeeClusterId() == that.getZigbeeClusterId();
}