Skip to content

Commit

Permalink
fix: pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrene committed Oct 27, 2024
1 parent b638f25 commit 1a08335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/temperature.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func newTemperatureCmd(h *pkg.Hctl, out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "temperature",
Short: "Set the temperature of a climate entity",
Aliases: []string{"t"},
Aliases: []string{"te", "temp"},
Args: cobra.MatchAll(cobra.ExactArgs(2)),
ValidArgsFunction: func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
if len(args) == 0 {
Expand Down
10 changes: 2 additions & 8 deletions pkg/hctltest/testdata/states.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,10 @@
"entity_id": "climate.heating",
"state": "heat",
"attributes": {
"hvac_modes": [
"heat",
"off"
],
"hvac_modes": ["heat", "off"],
"min_temp": 10,
"max_temp": 32,
"preset_modes": [
"none",
"eco"
],
"preset_modes": ["none", "eco"],
"current_temperature": 21.8,
"temperature": 21.0,
"hvac_action": "idle",
Expand Down

0 comments on commit 1a08335

Please sign in to comment.