Code cleansing

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
This commit is contained in:
Gaël L'hopital 2024-11-19 14:35:48 +01:00
parent 815de298a2
commit 86458b1cc7
4 changed files with 3 additions and 7 deletions

View File

@ -36,7 +36,6 @@ public class AirParifApi {
public static final URI EPISODES_URI = AIRPARIF_BUILDER.clone().path("episodes").path("en-cours-et-prevus").build(); public static final URI EPISODES_URI = AIRPARIF_BUILDER.clone().path("episodes").path("en-cours-et-prevus").build();
private static final UriBuilder INDICES_BUILDER = AIRPARIF_BUILDER.clone().path("indices").path("prevision"); private static final UriBuilder INDICES_BUILDER = AIRPARIF_BUILDER.clone().path("indices").path("prevision");
public static final URI PREV_COLORS_URI = INDICES_BUILDER.clone().path("couleurs").build();
public static final URI PREV_BULLETIN_URI = INDICES_BUILDER.clone().path("bulletin").build(); public static final URI PREV_BULLETIN_URI = INDICES_BUILDER.clone().path("bulletin").build();
private static final UriBuilder POLLENS_BUILDER = AIRPARIF_BUILDER.clone().path("pollens"); private static final UriBuilder POLLENS_BUILDER = AIRPARIF_BUILDER.clone().path("pollens");
@ -44,6 +43,7 @@ public class AirParifApi {
// Poor interest, only returns highest risk level for the dept. // Poor interest, only returns highest risk level for the dept.
// public static final UriBuilder POLLENS_DEPT_BUILDER = POLLENS_BUILDER.clone().path("departement"); // public static final UriBuilder POLLENS_DEPT_BUILDER = POLLENS_BUILDER.clone().path("departement");
// public static final URI PREV_COLORS_URI = INDICES_BUILDER.clone().path("couleurs").build();
public enum Scope { public enum Scope {
@SerializedName("Cartes et résultats Hor'Air") @SerializedName("Cartes et résultats Hor'Air")

View File

@ -278,10 +278,6 @@ public class AirParifBridgeHandler extends BaseBridgeHandler implements HandlerU
updateState(new ChannelUID(dailyGroupUID, CHANNEL_MESSAGE), new StringType(episode.message().fr())); updateState(new ChannelUID(dailyGroupUID, CHANNEL_MESSAGE), new StringType(episode.message().fr()));
updateState(new ChannelUID(dailyGroupUID, CHANNEL_TOMORROW), new StringType(episode.message().fr())); updateState(new ChannelUID(dailyGroupUID, CHANNEL_TOMORROW), new StringType(episode.message().fr()));
// Set.of(episode.today(), episode.tomorrow()).stream().forEach(aq -> {
// });
ZonedDateTime tomorrowMorning = ZonedDateTime.now().plusDays(1).truncatedTo(ChronoUnit.DAYS).plusMinutes(1); ZonedDateTime tomorrowMorning = ZonedDateTime.now().plusDays(1).truncatedTo(ChronoUnit.DAYS).plusMinutes(1);
schedule(EPISODE_JOB, () -> updateEpisode(dailyGroupUID), schedule(EPISODE_JOB, () -> updateEpisode(dailyGroupUID),
Duration.between(ZonedDateTime.now(), tomorrowMorning)); Duration.between(ZonedDateTime.now(), tomorrowMorning));