File tree Expand file tree Collapse file tree
packages/volto-home-assistant
src/components/Blocks/PlantWaterer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
1414<!-- towncrier release notes start -->
1515
16- ## 2.1.0 (2025-03-30 )
16+ ## 2.1.0 (2025-03-31 )
1717
18+ - Remove window.localStorage [ fosten]
1819- Update CHANGELOG.md [ fosten]
1920- Bump package.json versions to 2.1.0 [ fosten]
2021- Bump Volto from 18.0.0-alpha.47 to 18.10.1 [ fosten]
Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ import { Table } from 'semantic-ui-react';
1717const View = ( props ) => {
1818 const [ response , setState ] = useState ( { } ) ;
1919 async function myResponse ( ) {
20- window . localStorage . setItem (
21- `token` ,
22- JSON . stringify ( window . env . RAZZLE_HOMEASSISTANT_ACCESS_TOKEN ) ,
23- ) ;
2420 try {
2521 const response = await axios . get (
2622 `${ window . env . RAZZLE_HOMEASSISTANT_API_HOST } :${ window . env . RAZZLE_HOMEASSISTANT_API_PORT } /api/states` ,
@@ -32,7 +28,6 @@ const View = (props) => {
3228 } ,
3329 ) ;
3430 setState ( response ) ;
35- window . localStorage . setItem ( `response` , JSON . stringify ( response ) ) ;
3631 } catch ( err ) {
3732 // eslint-disable-next-line no-console
3833 console . log ( err ) ;
You can’t perform that action at this time.
0 commit comments