Skip to content

Commit

Permalink
Set use_brower_time default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kissling committed Oct 3, 2023
1 parent b0f9513 commit f9d361e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Credits go to [basmilius](https://github.com/basmilius) for the awesome [weather
### Breaking changes
* Configuration property `forecast_days` was renamed to `forecast_rows` to indicate that this attribute does not only work for daily, but also for hourly forecasts.
* `date-fns` has been replaced by `luxon` for date/time formatting. If you configure `date_pattern`, make sure to migrate your pattern to comply with [luxon](https://moment.github.io/luxon/#/formatting?id=table-of-tokens). Additionally, the weekday is now [_not_ hardcoded](https://github.com/pkissling/clock-weather-card/issues/89) anymore.
* Configuration property `use_browser_time` is now by default `false`, so by default the card will show the time of the current HA time zone.

## FAQ

Expand Down Expand Up @@ -110,7 +111,7 @@ hide_forecast_section: false
hide_clock: false
hide_date: false
hourly_forecast: false
use_browser_time: true
use_browser_time: false
```

### Options
Expand All @@ -133,7 +134,7 @@ use_browser_time: true
| hide_clock | boolean | **Optional** | Hides the clock from the today section and prominently displays the current temperature instead | `false` |
| hide_date | boolean | **Optional** | Hides the date from the today section | `false` |
| hourly_forecast | boolean | **Optional** | Displays an hourly forecast instead of daily | `false` |
| use_browser_time | boolean | **Optional** | Uses the time from your browser to indicate the current time. If not provided, falls back to the [`time_zone`](https://www.home-assistant.io/blog/2015/05/09/utc-time-zone-awareness/#setting-up-your-time-zone) configured in HA | `true` |
| use_browser_time | boolean | **Optional** | Uses the time from your browser to indicate the current time. If not provided, uses the [time_zone](https://www.home-assistant.io/blog/2015/05/09/utc-time-zone-awareness/#setting-up-your-time-zone) configured in HA | `false` |

## Footnotes

Expand Down
2 changes: 1 addition & 1 deletion src/clock-weather-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export class ClockWeatherCard extends LitElement {
hide_clock: config.hide_clock ?? false,
hide_date: config.hide_date ?? false,
date_pattern: config.date_pattern ?? 'ccc, D',
use_browser_time: config.use_browser_time ?? true
use_browser_time: config.use_browser_time ?? false
};
}

Expand Down

0 comments on commit f9d361e

Please sign in to comment.