fix(pkg/config): converter for humidity and temperature sensors
This commit is contained in:
		@@ -10,9 +10,9 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var listSensorCmd = &cobra.Command{
 | 
			
		||||
	Use:     "ls",
 | 
			
		||||
	Use:     "list",
 | 
			
		||||
	Short:   "List Sensors",
 | 
			
		||||
	Aliases: []string{"list"},
 | 
			
		||||
	Aliases: []string{"ls"},
 | 
			
		||||
	Run: func(cmd *cobra.Command, args []string) {
 | 
			
		||||
		// read configuration
 | 
			
		||||
		fc, err := config.Read(cfg)
 | 
			
		||||
 
 | 
			
		||||
@@ -8,10 +8,10 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
var rmSensorCmd = &cobra.Command{
 | 
			
		||||
	Use:     "rm",
 | 
			
		||||
	Use:     "remove",
 | 
			
		||||
	Short:   "Remove Sensor",
 | 
			
		||||
	Example: "flucky sensor rm outdoor",
 | 
			
		||||
	Aliases: []string{"remove"},
 | 
			
		||||
	Aliases: []string{"rm"},
 | 
			
		||||
	Args:    cobra.ExactArgs(1),
 | 
			
		||||
	Run: func(cmd *cobra.Command, args []string) {
 | 
			
		||||
		// read configuration
 | 
			
		||||
		Reference in New Issue
	
	Block a user