Fix typo and clean up code
This commit is contained in:
parent
07c6d53422
commit
8bf4001c07
@ -378,11 +378,6 @@ void IntegrationPluginKeba::searchNetworkDevices()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntegrationPluginKeba::onDiscoveryWaitUpdResponseTimeout()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void IntegrationPluginKeba::onConnectionChanged(bool status)
|
void IntegrationPluginKeba::onConnectionChanged(bool status)
|
||||||
{
|
{
|
||||||
KeContact *keba = static_cast<KeContact *>(sender());
|
KeContact *keba = static_cast<KeContact *>(sender());
|
||||||
@ -632,7 +627,7 @@ void IntegrationPluginKeba::executeAction(ThingActionInfo *info)
|
|||||||
if (action.actionTypeId() == wallboxMaxChargingCurrentActionTypeId) {
|
if (action.actionTypeId() == wallboxMaxChargingCurrentActionTypeId) {
|
||||||
int milliAmpere = action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt() * 1000;
|
int milliAmpere = action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt() * 1000;
|
||||||
requestId = keba->setMaxAmpereGeneral(milliAmpere);
|
requestId = keba->setMaxAmpereGeneral(milliAmpere);
|
||||||
// Note: since the response only indicates the successfull receiving of the command,
|
// Note: since the response only indicates the successful receiving of the command,
|
||||||
// and we only can request the report every 2 seconds as verification, lets set the value right the way
|
// and we only can request the report every 2 seconds as verification, lets set the value right the way
|
||||||
// to prevent jitter while moving the slider
|
// to prevent jitter while moving the slider
|
||||||
//thing->setStateValue(wallboxMaxChargingCurrentStateTypeId, action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt());
|
//thing->setStateValue(wallboxMaxChargingCurrentStateTypeId, action.paramValue(wallboxMaxChargingCurrentActionMaxChargingCurrentParamTypeId).toUInt());
|
||||||
|
|||||||
@ -79,8 +79,6 @@ private:
|
|||||||
void searchNetworkDevices();
|
void searchNetworkDevices();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onDiscoveryWaitUpdResponseTimeout();
|
|
||||||
|
|
||||||
void onConnectionChanged(bool status);
|
void onConnectionChanged(bool status);
|
||||||
void onCommandExecuted(QUuid requestId, bool success);
|
void onCommandExecuted(QUuid requestId, bool success);
|
||||||
void onReportTwoReceived(const KeContact::ReportTwo &reportTwo);
|
void onReportTwoReceived(const KeContact::ReportTwo &reportTwo);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user