Skip to content

Commit

Permalink
Use default values for some configproperties, as they are required fo…
Browse files Browse the repository at this point in the history
…r testing

Fixes erwin1#2
  • Loading branch information
johanvos committed Jan 7, 2024
1 parent ead9781 commit dfa4dba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/homecontrol/impl/slack/SlackService.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

@ApplicationScoped
public class SlackService implements NotificationService {
@ConfigProperty(name = "EVCHARGING_SLACK_URL")
@ConfigProperty(name = "EVCHARGING_SLACK_URL", defaultValue="NONE")
String slackUrl;
@ConfigProperty(name = "EVCHARGING_SLACK_CHANNEL")
@ConfigProperty(name = "EVCHARGING_SLACK_CHANNEL", defaultValue="NONE")
String channel;

@Inject
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/homecontrol/impl/sma/SMACharger.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@ApplicationScoped
public class SMACharger implements Charger {

@ConfigProperty(name = "EVCHARGING_CHARGER_IP")
@ConfigProperty(name = "EVCHARGING_CHARGER_IP", defaultValue="NONE")
String chargerIp;
@ConfigProperty(name = "EVCHARGING_CHARGER_USERNAME")
String chargerUserName;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/homecontrol/impl/sma/SMAInverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
@ApplicationScoped
public class SMAInverter implements Inverter {
public static final Logger LOGGER = Logger.getLogger(SMAInverter.class.getName());
@ConfigProperty(name = "EVCHARGING_INVERTER_IP")
@ConfigProperty(name = "EVCHARGING_INVERTER_IP", defaultValue="NONE")
String inverterIp;
@ConfigProperty(name = "EVCHARGING_INVERTER_PASSWORD")
@ConfigProperty(name = "EVCHARGING_INVERTER_PASSWORD", defaultValue="NONE")
String inverterPassword;

String sid;
Expand Down

0 comments on commit dfa4dba

Please sign in to comment.