Refactor using cookieplone #1
Annotations
10 errors and 3 warnings
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/PlantWaterer/Edit.jsx#L3
Replace `<div>I'm·the·auto-generated·Plant·Waterer·block!·There·is·no·need·to·edit·me.</div>` with `(⏎····<div>⏎······I'm·the·auto-generated·Plant·Waterer·block!·There·is·no·need·to·edit·me.⏎····</div>⏎··)`
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/PlantWaterer/View.jsx#L20
Replace ``token`,·JSON.stringify(window.env.RAZZLE_HOMEASSISTANT_ACCESS_TOKEN)` with `⏎······`token`,⏎······JSON.stringify(window.env.RAZZLE_HOMEASSISTANT_ACCESS_TOKEN),⏎····`
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/PlantWaterer/View.jsx#L22
Replace ``${window.env.RAZZLE_HOMEASSISTANT_API_HOST}:${window.env.RAZZLE_HOMEASSISTANT_API_PORT}/api/states`,` with `⏎········`${window.env.RAZZLE_HOMEASSISTANT_API_HOST}:${window.env.RAZZLE_HOMEASSISTANT_API_PORT}/api/states`,⏎·······`
|
|
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/PlantWaterer/View.jsx#L25
Replace `··········` with `············`
|
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/PlantWaterer/View.jsx#L27
Replace `}` with `··},⏎······`
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/PlantWaterer/View.jsx#L54
Replace `·plantwaterer.entity_id.includes('sensor.soil_moisture')` with `⏎··················plantwaterer.entity_id.includes('sensor.soil_moisture'),⏎················`
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/PlantWaterer/View.jsx#L75
Replace `·plantwaterer.entity_id.includes('sensor.water_pump')` with `⏎··················plantwaterer.entity_id.includes('sensor.water_pump'),⏎················`
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/customBlocks.js#L1
Unable to resolve path to module '@fosten/volto-home-assistant/components/Blocks/PlantWaterer/View'
|
codeanalysis:
packages/volto-home-assistant/src/components/Blocks/customBlocks.js#L2
Unable to resolve path to module '@fosten/volto-home-assistant/components/Blocks/PlantWaterer/Edit'
|
codeanalysis:
packages/volto-home-assistant/src/components/index.js#L2
Unable to resolve path to module '@fosten/volto-home-assistant/components/Blocks/customBlocks'
|